diff options
author | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-02-23 23:44:16 +0000 |
---|---|---|
committer | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-02-23 23:44:16 +0000 |
commit | def4bad8e6b8b5a0c2f8520735f04354e2f67c77 (patch) | |
tree | 9a4bde45db478509560663c17ed1c237fda5e822 /configure | |
parent | 767d5d6d4abbe98db291927a74302febb559c5c2 (diff) | |
download | mpv-def4bad8e6b8b5a0c2f8520735f04354e2f67c77.tar.bz2 mpv-def4bad8e6b8b5a0c2f8520735f04354e2f67c77.tar.xz |
Adding gcc major, minor, mini vars, adding unused var suppression for gcc 3 series
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9498 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -463,6 +463,9 @@ if test "$_skip_cc_check" != yes ; then 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 @@ fi _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 |