From 416b1a13f40f2dbab14d1678ae39b2b472adb274 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sun, 30 Aug 2015 22:20:46 -0700 Subject: [PATCH] GUI: Use ATTRIBUTE_FORMAT on GUIFontPrintf --- src/util/gui/font.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/gui/font.h b/src/util/gui/font.h index 0abe0cabb..626cfed38 100644 --- a/src/util/gui/font.h +++ b/src/util/gui/font.h @@ -33,6 +33,7 @@ unsigned GUIFontHeight(const struct GUIFont*); unsigned GUIFontGlyphWidth(const struct GUIFont*, uint32_t glyph); unsigned GUIFontSpanWidth(const struct GUIFont*, const char* text); +ATTRIBUTE_FORMAT(printf, 6, 7) void GUIFontPrintf(const struct GUIFont*, int x, int y, enum GUITextAlignment, uint32_t color, const char* text, ...); void GUIFontPrint(const struct GUIFont*, int x, int y, enum GUITextAlignment, uint32_t color, const char* text); void GUIFontDrawGlyph(const struct GUIFont*, int x, int y, uint32_t color, uint32_t glyph);