From 4e52b97c7a0435244e49e92ca16a9e7a4e6ad307 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 7 Jul 2005 08:16:39 +0000 Subject: [PATCH] When building with gcc 4.0, we use -Wno-pointer-sign to reduce the amount of warnings. I consider this a temporary "fix" that we should remove later on. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7051 a1c6a512-1295-4272-9138-f99709370657 --- tools/configure | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/configure b/tools/configure index 37d92d3372..85764308db 100755 --- a/tools/configure +++ b/tools/configure @@ -649,6 +649,13 @@ else echo "Using $CC $gccver ($gccnum)" + if test "$gccnum" -ge "400"; then + # gcc 4.0 is just *so* much pickier on arguments that differ in signedness + # so we ignore that warnings for now + # -Wno-pointer-sign + GCCOPTS="$GCCOPTS -Wno-pointer-sign" + fi + fi if test "X$ccache" = "Xyes"; then