From decba07b092791d0f17b44b9c2a595545a34d93b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Jacke?= Date: Sat, 9 Feb 2019 01:33:13 +0100 Subject: [PATCH] waf: fix WERROR_CFLAGS check if we found the right WERROR flags of the compiler then the compiler is right to fail because we explicitly give it an empty file to compile. We should not do that because that makes the almost successful test fail. This fixed the studio compiler test. Signed-off-by: Bjoern Jacke Reviewed-by: Andreas Schneider --- buildtools/wafsamba/wscript | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript index 86293d347a1..75f24158600 100644 --- a/buildtools/wafsamba/wscript +++ b/buildtools/wafsamba/wscript @@ -308,8 +308,7 @@ def configure(conf): "-qhalt=w", # IBM xlc "-w2", # Tru64 ]: - if conf.CHECK_CFLAGS([f], ''' -'''): + if conf.CHECK_CFLAGS([f]): if not 'WERROR_CFLAGS' in conf.env: conf.env['WERROR_CFLAGS'] = [] conf.env['WERROR_CFLAGS'].extend([f])