[misc] Add compiler hint to check format parameters

This commit is contained in:
chme 2019-01-26 10:08:11 +01:00
parent 1f2b608d62
commit b000803fe3

View File

@ -56,10 +56,10 @@ char *
safe_strdup(const char *str);
char *
safe_asprintf(const char *fmt, ...);
safe_asprintf(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
int
safe_snprintf_cat(char *dst, size_t n, const char *fmt, ...);
safe_snprintf_cat(char *dst, size_t n, const char *fmt, ...) __attribute__ ((format (printf, 3, 4)));
/* Key/value functions */