diff options
author | Max Horn | 2009-02-21 04:25:56 +0000 |
---|---|---|
committer | Max Horn | 2009-02-21 04:25:56 +0000 |
commit | 7c87b4901dd6de93511cf7995931b64e59d13fef (patch) | |
tree | 3886d975a45c3b65a540f350e91a58aabb2cf220 /engines/sci/include | |
parent | cb6b1fc90303cff2f7bff4533fbb2644c4373bec (diff) | |
download | scummvm-rg350-7c87b4901dd6de93511cf7995931b64e59d13fef.tar.gz scummvm-rg350-7c87b4901dd6de93511cf7995931b64e59d13fef.tar.bz2 scummvm-rg350-7c87b4901dd6de93511cf7995931b64e59d13fef.zip |
SCI: Use GCC_PRINTF hint to the compiler for _SCIkprintf and sciprintf; fixed tons of bad format strings
svn-id: r38660
Diffstat (limited to 'engines/sci/include')
-rw-r--r-- | engines/sci/include/kernel.h | 2 | ||||
-rw-r--r-- | engines/sci/include/resource.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/include/kernel.h b/engines/sci/include/kernel.h index e9467e246e..071aee7b46 100644 --- a/engines/sci/include/kernel.h +++ b/engines/sci/include/kernel.h @@ -154,7 +154,7 @@ is_object(struct _state *s, reg_t obj); void _SCIkvprintf(FILE *file, const char *format, va_list args); void -_SCIkprintf(FILE *file, const char *format, ...); +_SCIkprintf(FILE *file, const char *format, ...) GCC_PRINTF(2, 3); diff --git a/engines/sci/include/resource.h b/engines/sci/include/resource.h index ada1e4823f..ebaa23f642 100644 --- a/engines/sci/include/resource.h +++ b/engines/sci/include/resource.h @@ -214,7 +214,7 @@ sci_open(const char *fname, int flags); int -sciprintf(const char *fmt, ...); +sciprintf(const char *fmt, ...) GCC_PRINTF(1, 2); #define gfxprintf sciprintf /* Prints a string to the console stack ** Parameters: fmt: a printf-style format string |