From: Dan Carpenter Date: Tue, 23 Oct 2012 08:43:35 +0000 (+0300) Subject: absolute: fix how modifications are handled X-Git-Tag: 1.57~207 X-Git-Url: https://repo.or.cz/w/smatch.git/commitdiff_plain/a931445a0df6259bfe4fe8c2a4cbd35d45982339 absolute: fix how modifications are handled We want to let the modification hooks handle all the modifications. Move the register call later in the check_list.h file so that the modification hooks unset thing and we reset them as needed. Signed-off-by: Dan Carpenter --- diff --git a/check_list.h b/check_list.h index b3afb52d..3a1c738a 100644 --- a/check_list.h +++ b/check_list.h @@ -4,8 +4,8 @@ #endif CK(register_smatch_extra) /* smatch_extra always has to be first */ -CK(register_absolute) CK(register_modification_hooks) +CK(register_absolute) CK(register_definition_db_callbacks) CK(register_project) diff --git a/smatch_absolute.c b/smatch_absolute.c index 9c31fce7..8030ffba 100644 --- a/smatch_absolute.c +++ b/smatch_absolute.c @@ -197,5 +197,5 @@ void register_absolute(int id) void register_absolute_late(int id) { - add_indirect_modification_hook(absolute_id, reset_state); + add_modification_hook(absolute_id, reset_state); }