# HG changeset patch # User atmos4 # Date 1046043856 0 # Node ID 38857e7003886d242a86b7137a4d8b68244aa139 # Parent 78e86ff778b75a832398a078696fb8826a15cf71 Adding gcc major, minor, mini vars, adding unused var suppression for gcc 3 series diff -r 78e86ff778b7 -r 38857e700388 configure --- a/configure Sun Feb 23 23:34:16 2003 +0000 +++ b/configure Sun Feb 23 23:44:16 2003 +0000 @@ -463,6 +463,9 @@ cc_verc_fail=yes ;; 2.95.[2-9]|2.95.[2-9][-.]*|3.[0-9]|3.[0-9].[0-9]) + _cc_major=`echo $cc_version | cut -d '.' -f 1` + _cc_minor=`echo $cc_version | cut -d '.' -f 2` + _cc_mini=`echo $cc_version | cut -d '.' -f 3` cc_version="$cc_version, ok" cc_verc_fail=no ;; @@ -4743,6 +4746,9 @@ _stripbinaries=yes if test "$_profile" != "" || test "$_debug" != "" ; then CFLAGS="-W -Wall -O2 $_march $_mcpu $_debug $_profile" + if test "$_cc_major" -ge "3" ; then + CFLAGS=`echo "$CFLAGS" | sed -e 's/\(-Wall\)/\1 -Wno-unused-parameter/'` + fi _stripbinaries=no elif test -z "$CFLAGS" ; then if test "$host_arch" != "mips" ; then