summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
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