summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2009-12-11 00:26:28 +0100
committerJared Adams <jaxad0127@gmail.com>2009-12-10 20:27:48 -0700
commit6b7833deee20e3abb5856d64d7f359d754fea4ca (patch)
tree6306ea2b31df2e7c2aab21375766a15f55913431
parente356eb91b4edb860bb567cbcd467a43ef011c86f (diff)
downloadmana-client-6b7833deee20e3abb5856d64d7f359d754fea4ca.tar.gz
mana-client-6b7833deee20e3abb5856d64d7f359d754fea4ca.tar.bz2
mana-client-6b7833deee20e3abb5856d64d7f359d754fea4ca.tar.xz
mana-client-6b7833deee20e3abb5856d64d7f359d754fea4ca.zip
Avoiding compiler warnings with gcc 4.4.0
With the changed __attribute__ it compiles now without warnings on gcc 4.4.0. For other compiler this should work too, because this format is already used for log() in log.h.
-rw-r--r--.gitignore2
-rw-r--r--src/utils/stringutils.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index f203cc96..d291d426 100644
--- a/.gitignore
+++ b/.gitignore
@@ -49,7 +49,7 @@ src/mana-ea
# files created during Windows build
.objs
*.dll
-mana.exe
+*.exe
mana.depend
mana.layout
diff --git a/src/utils/stringutils.h b/src/utils/stringutils.h
index a0e766fb..c5757d0f 100644
--- a/src/utils/stringutils.h
+++ b/src/utils/stringutils.h
@@ -80,7 +80,7 @@ std::string strprintf(char const *, ...)
#ifdef __GNUC__
/* This attribute is nice: it even works through gettext invokation. For
example, gcc will complain that strprintf(_("%s"), 42) is ill-formed. */
- __attribute__((format(printf, 1, 2)))
+ __attribute__((__format__(__printf__, 1, 2)))
#endif
;