Mercurial > hg > openttd
changeset 15176:a81a492d3d19 draft
(svn r19805) -Codechange: disable warnings about unused but set variables when building with asserts disabled
author | smatz <smatz@openttd.org> |
---|---|
date | Thu, 13 May 2010 05:29:25 +0000 |
parents | e31caa49ee3a |
children | 8cd2a5326ad4 |
files | config.lib |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/config.lib +++ b/config.lib @@ -1163,6 +1163,11 @@ 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