summaryrefslogtreecommitdiff
path: root/Build/source/m4
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2012-02-23 14:04:14 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2012-02-23 14:04:14 +0000
commit97e502dc16d9f2ed6038360b047c60206df4ca72 (patch)
tree8efc0913e7c5df51b5c4dba787b5c586869a0075 /Build/source/m4
parent9fbfe507d0f9d90df2880e61eb4e5280206ae6b9 (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/m4')
-rw-r--r--Build/source/m4/ChangeLog4
-rw-r--r--Build/source/m4/kpse-warnings.m47
2 files changed, 9 insertions, 2 deletions
diff --git a/Build/source/m4/ChangeLog b/Build/source/m4/ChangeLog
index 4f00f78ca13..6bf15a07fc5 100644
--- a/Build/source/m4/ChangeLog
+++ b/Build/source/m4/ChangeLog
@@ -1,3 +1,7 @@
+2012-02-23 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * kpse-warnings.m4: Drop `-Wimplicit' for g++ >= 4.6.
+
2012-01-16 Peter Breitenlohner <peb@mppmu.mpg.de>
* kpse-setup.m4 (KPSE_SETUP): Normalize `enable_largefile'.
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 <tex-live@tug.org>
+# Copyright (C) 2009-2012 Peter Breitenlohner <tex-live@tug.org>
#
# 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"])