Enable more printf format attributes

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2022-04-14 08:32:18 +02:00
1 parent a0820c7f20
commit 6a21ac55ad
3 files changed
+8 -8

No files matched your search

+4 -4
View File
@@ -54,9 +54,9 @@ extern char *prognm;
char *progname (char *arg0);
char *str (char *fmt, ...);
int fnread (char *buf, size_t len, char *fmt, ...);
int fnwrite (char *value, char *fmt, ...);
char *str (char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
int fnread (char *buf, size_t len, char *fmt, ...) __attribute__ ((format (printf, 3, 4)));
int fnwrite (char *value, char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
int fngetint (char *path, int *val);
int strtobytes (char *arg);
@@ -85,7 +85,7 @@ int ttcooked (void);
#define ttcooked() 0
#endif
static inline void dbg(char *fmt, ...)
static __attribute__ ((format (printf, 1, 2))) inline void dbg(char *fmt, ...)
{
va_list ap;