diff options
author | smatz <smatz@openttd.org> | 2010-05-13 05:29:25 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2010-05-13 05:29:25 +0000 |
commit | b229acce2529fbaca8e54cfe3fadcfb5429d381b (patch) | |
tree | 803fb9da3575b622afb1204694ba5722b2d01004 | |
parent | 7e1808ce21e2b56c7c283842633864cb9043b1cc (diff) | |
download | openttd-b229acce2529fbaca8e54cfe3fadcfb5429d381b.tar.xz |
(svn r19805) -Codechange: disable warnings about unused but set variables when building with asserts disabled
-rw-r--r-- | config.lib | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config.lib b/config.lib index 291bbaa00..ba3777c8e 100644 --- a/config.lib +++ b/config.lib @@ -1163,6 +1163,11 @@ make_compiler_cflags() { if [ $enable_assert -eq 0 ]; then # Do not warn about unused variables when building without asserts flags="$flags -Wno-unused-variable" + if [ $cc_version -ge 46 ]; then + # GCC 4.6 gives more warnings, disable them too + flags="$flags -Wno-unused-but-set-variable" + flags="$flags -Wno-unused-but-set-parameter" + fi fi if [ $cc_version -ge 40 ]; then |