From 3057e309dfe260f0902a88e9049dad1b8f194538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Orynicz?= Date: Tue, 8 Apr 2014 10:40:09 +0200 Subject: Change how WERROR and WERR_UNKNOWN is turned off Use setting WERROR and WERR_UNKNOWN explicitly to FALSE instead using unset command. This ensures that no if(WERROR) or if(WERR_UNKNOWN) clause will trigger unless these variables are set to another value. Change-Id: I752d7691c9c101b07c6ee85db83d96d9190bccd7 Reviewed-on: https://code.wireshark.org/review/1001 Reviewed-by: Michal Labedzki Reviewed-by: Alexis La Goutte --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 543c566254..2bdc312a10 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -309,8 +309,8 @@ if(NOT DISABLE_WERROR AND NOT ENABLE_EXTRA_GCC_CHECKS) check_c_compiler_flag(-Werror=unknown-warning-option WERR_UNKNOWN) check_c_compiler_flag(-Werror WERROR) else() - unset(WERR_UNKNOWN) - unset(WERROR) + set(WERR_UNKNOWN FALSE) + set(WERROR FALSE) endif() # string of additional compile command line flags for check_c_compiler_flag if(WERR_UNKNOWN) -- cgit v1.2.3