mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
[misc] Add compiler hint to check format parameters
This commit is contained in:
parent
1f2b608d62
commit
b000803fe3
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user