From 97e502dc16d9f2ed6038360b047c60206df4ca72 Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Thu, 23 Feb 2012 14:04:14 +0000 Subject: build system: GCC >= 4.6 warnings git-svn-id: svn://tug.org/texlive/trunk@25483 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/m4/kpse-warnings.m4 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Build/source/m4/kpse-warnings.m4') diff --git a/Build/source/m4/kpse-warnings.m4 b/Build/source/m4/kpse-warnings.m4 index 21127cb5466..763e0bb7373 100644 --- a/Build/source/m4/kpse-warnings.m4 +++ b/Build/source/m4/kpse-warnings.m4 @@ -1,5 +1,5 @@ # Public macros for the TeX Live (TL) tree. -# Copyright (C) 2009-2011 Peter Breitenlohner +# Copyright (C) 2009-2012 Peter Breitenlohner # # This file is free software; the copyright holders # give unlimited permission to copy and/or distribute it, @@ -174,7 +174,10 @@ m4_define([_KPSE_WARNING_GNU_CXXFLAGS], [kpse_cv_warning_$2= kpse_warn_strings="-Wno-write-strings" if test "x$enable_compiler_warnings" != xno; then - kpse_cv_warning_$2="-Wimplicit -Wreturn-type" + kpse_cv_warning_$2="-Wreturn-type" + AS_CASE([`$[]$1 -dumpversion`], + [3.* | 4.@<:@012345@:>@.*], + [kpse_cv_warning_$2="-Wimplicit $kpse_cv_warning_$2"]) AS_CASE([`$[]$1 -dumpversion`], [3.@<:@234@:>@.* | 4.*], [kpse_cv_warning_$2="$kpse_cv_warning_$2 -Wno-unknown-pragmas"]) -- cgit v1.2.3