From 3f78d149cf2260278a3276f7e470ee27d183bc3f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Javier=20Jard=C3=B3n?= Date: Sat, 26 Oct 2013 23:26:13 +0100 Subject: [PATCH] build-sys: Add -fdiagnostics-color=auto to CFLAGS As a way to highlight warnings and errors in GCC output This will be available in GCC 4.9, but some distros backported the feature to lower versions http://gcc.gnu.org/gcc-4.9/changes.html --- bootstrap.sh | 4 ---- configure.ac | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 08e0fa4..011aa13 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -47,10 +47,6 @@ fi intltoolize --version >/dev/null || DIE=1 test "$DIE" = 1 && exit 1 -if type -p colorgcc > /dev/null ; then - export CC=colorgcc -fi - autopoint --force AUTOPOINT='intltoolize --automake --copy' autoreconf --force --install --verbose diff --git a/configure.ac b/configure.ac index 76490f4..39bb5c3 100644 --- a/configure.ac +++ b/configure.ac @@ -174,7 +174,7 @@ esac #### Compiler flags #### AX_APPEND_COMPILE_FLAGS( - [-Wall -W -Wextra -pipe -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -fno-common -fdiagnostics-show-option], + [-Wall -W -Wextra -pipe -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -fno-common -fdiagnostics-show-option -fdiagnostics-color=auto], [], [-pedantic -Werror]) AS_CASE([" $CFLAGS "], [*" -O0 "*], [], [ -- 2.7.4