aboutsummaryrefslogtreecommitdiff
path: root/engines/agos
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/agos
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/agos')
-rw-r--r--engines/agos/agos.h2
-rw-r--r--engines/agos/script_e1.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/agos/agos.h b/engines/agos/agos.h
index 1edfe54612..f6a85d498d 100644
--- a/engines/agos/agos.h
+++ b/engines/agos/agos.h
@@ -673,7 +673,7 @@ protected:
void uncompressText(byte *ptr);
byte *uncompressToken(byte a, byte *ptr);
- void showMessageFormat(const char *s, ...);
+ void showMessageFormat(const char *s, ...) GCC_PRINTF(2, 3);
const byte *getStringPtrByID(uint16 stringId, bool upperCase = false);
const byte *getLocalStringByID(uint16 stringId);
uint getNextStringID();
diff --git a/engines/agos/script_e1.cpp b/engines/agos/script_e1.cpp
index 0080748699..df37a38a7c 100644
--- a/engines/agos/script_e1.cpp
+++ b/engines/agos/script_e1.cpp
@@ -532,7 +532,7 @@ void AGOSEngine_Elvira1::oe1_moveDirn() {
void AGOSEngine_Elvira1::oe1_score() {
// 90: score
SubPlayer *p = (SubPlayer *)findChildOfType(me(), kPlayerType);
- showMessageFormat("Your score is %ld.\n", p->score);
+ showMessageFormat("Your score is %d.\n", p->score);
}
void AGOSEngine_Elvira1::oe1_look() {