diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-02-23 14:04:14 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-02-23 14:04:14 +0000 |
commit | 97e502dc16d9f2ed6038360b047c60206df4ca72 (patch) | |
tree | 8efc0913e7c5df51b5c4dba787b5c586869a0075 /Build/source/texk/web2c/configure | |
parent | 9fbfe507d0f9d90df2880e61eb4e5280206ae6b9 (diff) |
build system: GCC >= 4.6 warnings
git-svn-id: svn://tug.org/texlive/trunk@25483 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/configure')
-rwxr-xr-x | Build/source/texk/web2c/configure | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/configure b/Build/source/texk/web2c/configure index faf47c7c9fa..d37f46966b9 100755 --- a/Build/source/texk/web2c/configure +++ b/Build/source/texk/web2c/configure @@ -16908,7 +16908,13 @@ else kpse_cv_warning_cxxflags= kpse_warn_strings="-Wno-write-strings" if test "x$enable_compiler_warnings" != xno; then - kpse_cv_warning_cxxflags="-Wimplicit -Wreturn-type" + kpse_cv_warning_cxxflags="-Wreturn-type" + case `$CXX -dumpversion` in #( + 3.* | 4.[012345].*) : + kpse_cv_warning_cxxflags="-Wimplicit $kpse_cv_warning_cxxflags" ;; #( + *) : + ;; +esac case `$CXX -dumpversion` in #( 3.[234].* | 4.*) : kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wno-unknown-pragmas" ;; #( @@ -17198,7 +17204,13 @@ else kpse_cv_warning_objcxxflags= kpse_warn_strings="-Wno-write-strings" if test "x$enable_compiler_warnings" != xno; then - kpse_cv_warning_objcxxflags="-Wimplicit -Wreturn-type" + kpse_cv_warning_objcxxflags="-Wreturn-type" + case `$OBJCXX -dumpversion` in #( + 3.* | 4.[012345].*) : + kpse_cv_warning_objcxxflags="-Wimplicit $kpse_cv_warning_objcxxflags" ;; #( + *) : + ;; +esac case `$OBJCXX -dumpversion` in #( 3.[234].* | 4.*) : kpse_cv_warning_objcxxflags="$kpse_cv_warning_objcxxflags -Wno-unknown-pragmas" ;; #( |