From 3f77401a554c4db6b67c12732b7acaea7b229bbb Mon Sep 17 00:00:00 2001 From: Cody P Schafer Date: Sat, 15 Feb 2014 12:20:00 -0800 Subject: Add an attribute to start checking format strings --- src/ui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui.h b/src/ui.h index 4fba9ba..6b5d891 100644 --- a/src/ui.h +++ b/src/ui.h @@ -37,7 +37,7 @@ THE SOFTWARE. typedef void (*BarUiSelectStationCallback_t) (BarApp_t *app, char *buf); -void BarUiMsg (const BarSettings_t *, const BarUiMsg_t, const char *, ...); +void BarUiMsg (const BarSettings_t *, const BarUiMsg_t, const char *, ...) __attribute__((format(printf, 3, 4))); PianoStation_t *BarUiSelectStation (BarApp_t *, PianoStation_t *, const char *, BarUiSelectStationCallback_t, bool); PianoSong_t *BarUiSelectSong (const BarSettings_t *, PianoSong_t *, -- cgit v1.2.3