diff options
author | Nils Wallménius <nils@rockbox.org> | 2007-09-07 17:55:21 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2007-09-07 17:55:21 +0000 |
commit | 7b198cc55721e7b4d81a5a12c54bddb924451b5b (patch) | |
tree | d719640055a649c020b6ecf730cc3fdd078d86df | |
parent | 2ee454a3fbf38a1d8db4923884364801e6b75175 (diff) | |
download | rockbox-7b198cc55721e7b4d81a5a12c54bddb924451b5b.tar.gz 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
-rwxr-xr-x | tools/configure | 6 |
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 |