]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
m4/curl-compilers: tell clang -Wno-pointer-bool-conversion
authorDaniel Stenberg <daniel@haxx.se>
Tue, 28 Dec 2021 21:57:31 +0000 (22:57 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 29 Dec 2021 22:20:57 +0000 (23:20 +0100)
To hush compiler warnings we don't care for: error: address of function
'X' will always evaluate to 'true'

Fixes #8197
Closes #8198

m4/curl-compilers.m4

index 5fb17cc8c7e109aa98f9c88fe4001b9572573644..988abdb8a7f58aaedf86c8e32e7dd1a363a16e7d 100644 (file)
@@ -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)