summaryrefslogtreecommitdiff
path: root/mailmap.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-07-13 10:05:18 +0200
committerJunio C Hamano <gitster@pobox.com>2021-07-13 15:20:20 -0700
commit48ca53cac4a5bee2dee3a5f3d6550753bf696d28 (patch)
tree1ec36f9e4422ce21f9c3085c62066aa85530e52e /mailmap.c
parentd4ac305073411bd70ae94e79c8fe8130a7d378aa (diff)
downloadgit-48ca53cac4a5bee2dee3a5f3d6550753bf696d28.tar.gz
*.c static functions: add missing __attribute__((format))
Add missing __attribute__((format)) function attributes to various "static" functions that take printf arguments. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'mailmap.c')
-rw-r--r--mailmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mailmap.c b/mailmap.c
index d1f7c0d272..462b395634 100644
--- a/mailmap.c
+++ b/mailmap.c
@@ -8,6 +8,7 @@
#define debug_mm(...) fprintf(stderr, __VA_ARGS__)
#define debug_str(X) ((X) ? (X) : "(none)")
#else
+__attribute__((format (printf, 1, 2)))
static inline void debug_mm(const char *format, ...) {}
static inline const char *debug_str(const char *s) { return s; }
#endif