Mercurial > hg > dmlib
diff src/dmres.h @ 2383:43e39d9ec42f
Add __attribute__(__format__ ..) specifiers for functions that use printf() style format specifiers.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 09 Jan 2020 14:55:41 +0200 |
parents | e69de47d2419 |
children | 5ffc48a0bebe |
line wrap: on
line diff
--- a/src/dmres.h Wed Jan 08 14:59:16 2020 +0200 +++ b/src/dmres.h Thu Jan 09 14:55:41 2020 +0200 @@ -172,7 +172,8 @@ char * dmfgets(char *str, const int size, DMResource *fh); int dmfputs(const char *str, DMResource *fh); int dmvfprintf(DMResource *fh, const char *fmt, va_list ap); -int dmfprintf(DMResource *fh, const char *fmt, ...); +int dmfprintf(DMResource *fh, const char *fmt, ...) + __attribute__ ((__format__ (__printf__, 2, 3))); // Helper functions for endianess based reading etc BOOL dmf_read_str(DMResource *fh, void *ptr, const size_t len);