diff src/dmtext.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 1edf494226c6
children 5ffc48a0bebe
line wrap: on
line diff
--- a/src/dmtext.h	Wed Jan 08 14:59:16 2020 +0200
+++ b/src/dmtext.h	Thu Jan 09 14:55:41 2020 +0200
@@ -68,7 +68,8 @@
 void dmDrawBMTextVA(SDL_Surface *screen, const DMBitmapFont *font,
     const BOOL condensed, const int mode, const int xc, const int yc, const char *fmt, va_list ap);
 void dmDrawBMText(SDL_Surface *screen, const DMBitmapFont *font,
-    const BOOL condensed, const int mode, const int xc, const int yc, const char *fmt, ...);
+    const BOOL condensed, const int mode, const int xc, const int yc, const char *fmt, ...)
+    __attribute__ ((__format__ (__printf__, 7, 8)));
 
 
 static inline void dmInitializeGetBMGlyphSurface(SDL_Surface *surf, DMBitmapFont *font)