aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorMax Horn2009-07-03 10:40:49 +0000
committerMax Horn2009-07-03 10:40:49 +0000
commitcbea1a11935074090f737737e0a26d43cd708f89 (patch)
tree823cce2d1933f519fefc17a3f40adc1e802e3a18 /engines/kyra
parent9664050ff07214ccd2ae2189475ddde80e7630ef (diff)
downloadscummvm-rg350-cbea1a11935074090f737737e0a26d43cd708f89.tar.gz
scummvm-rg350-cbea1a11935074090f737737e0a26d43cd708f89.tar.bz2
scummvm-rg350-cbea1a11935074090f737737e0a26d43cd708f89.zip
Added more GCC_PRINTF attributes, and fixed resulting warnings in format strings
svn-id: r42054
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/screen_lol.h4
-rw-r--r--engines/kyra/text_lol.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/kyra/screen_lol.h b/engines/kyra/screen_lol.h
index db355977f8..2545064b58 100644
--- a/engines/kyra/screen_lol.h
+++ b/engines/kyra/screen_lol.h
@@ -46,8 +46,8 @@ public:
int curDimIndex() { return _curDimIndex; }
void modifyScreenDim(int dim, int x, int y, int w, int h);
- void fprintString(const char *format, int x, int y, uint8 col1, uint8 col2, uint16 flags, ...);
- void fprintStringIntro(const char *format, int x, int y, uint8 c1, uint8 c2, uint8 c3, uint16 flags, ...);
+ void fprintString(const char *format, int x, int y, uint8 col1, uint8 col2, uint16 flags, ...) GCC_PRINTF(2, 8);
+ void fprintStringIntro(const char *format, int x, int y, uint8 c1, uint8 c2, uint8 c3, uint16 flags, ...) GCC_PRINTF(2, 9);
void drawGridBox(int x, int y, int w, int h, int col);
void fadeClearSceneWindow(int delay);
diff --git a/engines/kyra/text_lol.h b/engines/kyra/text_lol.h
index 06c13e1fef..5586be730e 100644
--- a/engines/kyra/text_lol.h
+++ b/engines/kyra/text_lol.h
@@ -47,7 +47,7 @@ public:
void resetDimTextPositions(int dim);
void printDialogueText(int dim, char *str, EMCState *script, const uint16 *paramList, int16 paramIndex);
- void printMessage(uint16 type, const char *str, ...);
+ void printMessage(uint16 type, const char *str, ...) GCC_PRINTF(3, 4);
int16 _scriptParameter;