diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-06-08 11:37:46 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-06-10 09:16:30 -0700 |
| commit | ba744647eae1eeee3a1c2c3d3a2b331fc1075b54 (patch) | |
| tree | 508372253ecab0dbde508d19001d75808e33ec75 /attr.h | |
| parent | f52c9a2a280e872546ed84dcea71723d9a762d9a (diff) | |
| download | git-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 'attr.h')
| -rw-r--r-- | attr.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -190,6 +190,8 @@ struct attr_check { }; struct attr_check *attr_check_alloc(void); + +LAST_ARG_MUST_BE_NULL struct attr_check *attr_check_initl(const char *, ...); struct attr_check *attr_check_dup(const struct attr_check *check); |
