summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2007-09-07 17:55:21 +0000
committerNils Wallménius <nils@rockbox.org>2007-09-07 17:55:21 +0000
commit7b198cc55721e7b4d81a5a12c54bddb924451b5b (patch)
treed719640055a649c020b6ecf730cc3fdd078d86df /tools
parent2ee454a3fbf38a1d8db4923884364801e6b75175 (diff)
downloadrockbox-7b198cc55721e7b4d81a5a12c54bddb924451b5b.tar.gz
rockbox-7b198cc55721e7b4d81a5a12c54bddb924451b5b.tar.bz2
rockbox-7b198cc55721e7b4d81a5a12c54bddb924451b5b.zip
Disable 'initialized field overwritten' warnings for gcc >= 4.2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14633 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/configure6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/configure b/tools/configure
index 87c056af86..bdc1eb0dae 100755
--- a/tools/configure
+++ b/tools/configure
@@ -1571,6 +1571,12 @@ else
GCCOPTS="$GCCOPTS -fno-strict-aliasing"
fi
+ if test "$gccnum" -ge "402"; then
+ # disable warning about "warning: initialized field overwritten" as gcc 4.2
+ # and later would throw it for several valid cases
+ GCCOPTS="$GCCOPTS -Wno-override-init"
+ fi
+
fi
# check the compiler for SH platforms