diff tools/libgutil.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 59e9ad13b50e
children 5ffc48a0bebe
line wrap: on
line diff
--- a/tools/libgutil.h	Wed Jan 08 14:59:16 2020 +0200
+++ b/tools/libgutil.h	Thu Jan 09 14:55:41 2020 +0200
@@ -22,7 +22,8 @@
 void dmFillBox3D(SDL_Surface *screen, int x0, int y0, int x1, int y1, Uint32 bgcol, Uint32 ucol, Uint32 dcol);
 void dmDrawBMTextConstQ(SDL_Surface *screen, DMBitmapFont *font, int mode, int xc, int yc, const char *fmt);
 void dmDrawBMTextVAQ(SDL_Surface *screen, DMBitmapFont *font, int mode, int xc, int yc, const char *fmt, va_list ap);
-void dmDrawBMTextQ(SDL_Surface *screen, DMBitmapFont *font, int mode, int xc, int yc, const char *fmt, ...);
+void dmDrawBMTextQ(SDL_Surface *screen, DMBitmapFont *font, int mode, int xc, int yc, const char *fmt, ...)
+     __attribute__ ((__format__ (__printf__, 6, 7)));
 
 
 #ifdef __cplusplus