CARES_CHECK_TYPE should reference variable so a warning is not produced for -Werror compatibility

pull/167/head
Brad House 7 years ago
parent fabe20ff0d
commit e5a352926a
  1. 1
      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;
}
")

Loading…
Cancel
Save