aboutsummaryrefslogtreecommitdiff
path: root/hook.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-06-08 11:37:46 -0700
committerJunio C Hamano <gitster@pobox.com>2024-06-10 09:16:30 -0700
commitba744647eae1eeee3a1c2c3d3a2b331fc1075b54 (patch)
tree508372253ecab0dbde508d19001d75808e33ec75 /hook.h
parentf52c9a2a280e872546ed84dcea71723d9a762d9a (diff)
downloadgit-ba744647eae1eeee3a1c2c3d3a2b331fc1075b54.tar.xz
__attribute__: mark some functions with LAST_ARG_MUST_BE_NULL
Some varargs functions that use NULL-terminated parameter list were missing __attributes__ ((sentinel)) aka LAST_ARG_MUST_BE_NULL. Add them. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'hook.h')
-rw-r--r--hook.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hook.h b/hook.h
index 19ab9a5806..6511525aeb 100644
--- a/hook.h
+++ b/hook.h
@@ -86,5 +86,6 @@ int run_hooks(const char *hook_name);
* argument. These things will be used as positional arguments to the
* hook. This function behaves like the old run_hook_le() API.
*/
+LAST_ARG_MUST_BE_NULL
int run_hooks_l(const char *hook_name, ...);
#endif