]> git.scripts.mit.edu Git - git.git/blobdiff - run-command.h
use "sentinel" function attribute for variadic lists
[git.git] / run-command.h
index 221ce331405933f6f097b7e2b51401b70097e4e2..0a47679c42f9d5b0d1a55efd0bb25c866fba8253 100644 (file)
@@ -46,6 +46,7 @@ int finish_command(struct child_process *);
 int run_command(struct child_process *);
 
 extern char *find_hook(const char *name);
+__attribute__((sentinel))
 extern int run_hook(const char *index_file, const char *name, ...);
 
 #define RUN_COMMAND_NO_STDIN 1