mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-15 16:53:18 -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);
|
safe_strdup(const char *str);
|
||||||
|
|
||||||
char *
|
char *
|
||||||
safe_asprintf(const char *fmt, ...);
|
safe_asprintf(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
|
||||||
|
|
||||||
int
|
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 */
|
/* Key/value functions */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user