diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-02-02 10:54:09 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-02-02 10:54:09 +0000 |
commit | 0389b5324fc851a32e84698a3a22c2b5254c8efd (patch) | |
tree | 47fa24111ccb773fa957b5494551dfa8eac1bbe5 /Build/source/m4 | |
parent | 2db2385dc39fb49d9b21a5b7e2eca05572baaee0 (diff) |
build system: reduce default compiler warnings
git-svn-id: svn://tug.org/texlive/trunk@16900 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/m4')
-rw-r--r-- | Build/source/m4/kpse-warnings.m4 | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Build/source/m4/kpse-warnings.m4 b/Build/source/m4/kpse-warnings.m4 index b72a1b74721..0d481456b4f 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 Peter Breitenlohner <tex-live@tug.org> +# Copyright (C) 2009, 2010 Peter Breitenlohner <tex-live@tug.org> # # This file is free software; the copyright holders # give unlimited permission to copy and/or distribute it, @@ -142,7 +142,7 @@ m4_define([_KPSE_WARNING_OBJCXXFLAGS], [])[]dnl # Internal subroutine. # Determine warning flags for GNU (Objective) C compiler. m4_define([_KPSE_WARNING_GNU_CFLAGS], -[kpse_cv_warning_$2="-Wall -Wunused" +[kpse_cv_warning_$2="-Wimplicit -Wreturn-type" AS_CASE([`$[]$1 -dumpversion`], [3.4.* | 4.*], [kpse_cv_warning_$2="$kpse_cv_warning_$2 -Wdeclaration-after-statement"]) @@ -150,10 +150,10 @@ AS_CASE([`$[]$1 -dumpversion`], [3.@<:@234@:>@.* | 4.*], [kpse_cv_warning_$2="$kpse_cv_warning_$2 -Wno-unknown-pragmas"]) if test "x$enable_compiler_warnings" != xmin; then + kpse_cv_warning_$2="-Wall -Wunused -Wimplicit $kpse_cv_warning_$2" kpse_cv_warning_$2="$kpse_cv_warning_$2 -Wmissing-prototypes -Wmissing-declarations" if test "x$enable_compiler_warnings" != xyes; then - kpse_cv_warning_$2="$kpse_cv_warning_$2 -Wimplicit -Wparentheses -Wreturn-type" - kpse_cv_warning_$2="$kpse_cv_warning_$2 -Wswitch -Wtrigraphs -Wpointer-arith" + kpse_cv_warning_$2="$kpse_cv_warning_$2 -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith" kpse_cv_warning_$2="$kpse_cv_warning_$2 -Wcast-qual -Wcast-align -Wwrite-strings" AS_CASE([`$[]$1 -dumpversion`], [3.4.* | 4.*], @@ -170,14 +170,14 @@ fi # Internal subroutine. # Determine warning flags for GNU (Objective) C++ compiler. m4_define([_KPSE_WARNING_GNU_CXXFLAGS], -[kpse_cv_warning_$2="-Wall -Wunused" +[kpse_cv_warning_$2="-Wimplicit -Wreturn-type" AS_CASE([`$[]$1 -dumpversion`], [3.@<:@234@:>@.* | 4.*], [kpse_cv_warning_$2="$kpse_cv_warning_$2 -Wno-unknown-pragmas"]) if test "x$enable_compiler_warnings" != xmin; then + kpse_cv_warning_$2="-Wall -Wunused $kpse_cv_warning_$2" if test "x$enable_compiler_warnings" != xyes; then - kpse_cv_warning_$2="$kpse_cv_warning_$2 -Wimplicit -Wparentheses -Wreturn-type" - kpse_cv_warning_$2="$kpse_cv_warning_$2 -Wswitch -Wtrigraphs -Wpointer-arith" + kpse_cv_warning_$2="$kpse_cv_warning_$2 -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith" kpse_cv_warning_$2="$kpse_cv_warning_$2 -Wcast-qual -Wcast-align -Wwrite-strings" fi if test "x$enable_compiler_warnings" != xmax; then |