diff options
author | Javier Jardón <jjardon@gnome.org> | 2013-10-26 23:26:13 +0100 |
---|---|---|
committer | Tanu Kaskinen <tanu.kaskinen@linux.intel.com> | 2014-06-26 13:49:18 +0300 |
commit | 3f78d149cf2260278a3276f7e470ee27d183bc3f (patch) | |
tree | a2e4904496d5ce9804cb32d06c2f5fe41b04c7e6 | |
parent | ba925a0213fe3e59a5c5cc3ae3c73f8b72cef014 (diff) | |
download | pulseaudio-3f78d149cf2260278a3276f7e470ee27d183bc3f.tar.gz |
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
-rwxr-xr-x | bootstrap.sh | 4 | ||||
-rw-r--r-- | configure.ac | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/bootstrap.sh b/bootstrap.sh index 08e0fa4c6..011aa1327 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 76490f464..39bb5c3a4 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 "*], [], [ |