From e5a352926a7bcb2c3e6407da329b081033bd7ebb Mon Sep 17 00:00:00 2001 From: Brad House Date: Thu, 21 Dec 2017 17:38:08 -0500 Subject: [PATCH] CARES_CHECK_TYPE should reference variable so a warning is not produced for -Werror compatibility --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ccb1ff2..23752b13 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -268,6 +268,7 @@ MACRO (CARES_TYPE_EXISTS type var) SET(_CARES_C_SOURCE "${_CARES_C_SOURCE} int main() { ${type} var_exists; + (void)var_exists; return 0; } ")