From: Daniel Stenberg Date: Tue, 28 Dec 2021 21:57:31 +0000 (+0100) Subject: m4/curl-compilers: tell clang -Wno-pointer-bool-conversion X-Git-Tag: curl-7_81_0~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e9021838db7ad1cdbee6f5c5f3e8c7fac917a9ed;p=thirdparty%2Fcurl.git m4/curl-compilers: tell clang -Wno-pointer-bool-conversion To hush compiler warnings we don't care for: error: address of function 'X' will always evaluate to 'true' Fixes #8197 Closes #8198 --- diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4 index 5fb17cc8c7..988abdb8a7 100644 --- a/m4/curl-compilers.m4 +++ b/m4/curl-compilers.m4 @@ -536,6 +536,9 @@ AC_DEFUN([CURL_SET_COMPILER_BASIC_OPTS], [ dnl warn about compile-time arguments used during link-time, like dnl -O and -g and -pedantic. tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments" + dnl Disable pointer to bool conversion warnings since they cause + dnl lib/securetransp.c cause several warnings for checks we want. + tmp_CFLAGS="$tmp_CFLAGS -Wno-pointer-bool-conversion" ;; # DEC_C)