From 0f4ce418ae1410a294aa6e629beea68c6a16aff8 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 7 Jan 2015 09:52:53 +0100 Subject: wafsamba: move WERROR_CFLAGS checks from lib/replace to wafsamba Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- lib/replace/wscript | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'lib/replace/wscript') diff --git a/lib/replace/wscript b/lib/replace/wscript index 0f295140ed..60b714a501 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -36,19 +36,6 @@ def configure(conf): conf.ADD_CFLAGS('-fstack-protector') conf.ADD_LDFLAGS('-fstack-protector') - # Try to find the right extra flags for -Werror behaviour - for f in ["-Werror", # GCC - "-errwarn=%all", # Sun Studio - "-qhalt=w", # IBM xlc - "-w2", # Tru64 - ]: - if conf.CHECK_CFLAGS([f], ''' -'''): - if not 'WERROR_CFLAGS' in conf.env: - conf.env['WERROR_CFLAGS'] = [] - conf.env['WERROR_CFLAGS'].extend([f]) - break - conf.CHECK_HEADERS('linux/types.h crypt.h locale.h acl/libacl.h compat.h') conf.CHECK_HEADERS('acl/libacl.h attr/xattr.h compat.h ctype.h dustat.h') conf.CHECK_HEADERS('fcntl.h fnmatch.h glob.h history.h krb5.h langinfo.h') -- cgit