From ba05a520c391fa2d605314ec9d07fc51c9ab45f6 Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 2 Nov 2012 18:43:57 +0000 Subject: Make old-style-cast a non-error in maintainer mode as glibc macros bring it in --- src/build-data/cc/gcc.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/build-data/cc/gcc.txt b/src/build-data/cc/gcc.txt index cb142dba6..615fb2db8 100644 --- a/src/build-data/cc/gcc.txt +++ b/src/build-data/cc/gcc.txt @@ -9,9 +9,9 @@ add_lib_dir_option -L add_lib_option -l lang_flags "-D_REENTRANT -std=c++11" -warning_flags "-W -Wall" +warning_flags "-Wextra -Wall" -maintainer_warning_flags "-Werror -Wall -Wextra -Wstrict-aliasing -Wstrict-overflow=5 -Wcast-align -Wmissing-declarations -Wpointer-arith -Wcast-qual -Wold-style-cast -Wzero-as-null-pointer-constant" +maintainer_warning_flags "-Werror -Wall -Wextra -Wstrict-aliasing -Wstrict-overflow=5 -Wcast-align -Wmissing-declarations -Wpointer-arith -Wcast-qual -Wold-style-cast -Wzero-as-null-pointer-constant -Wno-error=old-style-cast" lib_opt_flags "-O3" check_opt_flags "-O2" -- cgit v1.2.3