summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-12-28 22:57:31 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-12-28 22:58:53 +0100
commitb210e43f54c9f332507174886988d245bb0adb0e (patch)
treec0cf4cde4fde760407baa71a464e1e0b3749249b
parent1914465cf180d32b3dfff9c4da15c19363075082 (diff)
downloadcurl-bagder/clang-pointer-bool.tar.gz
m4/curl-compilers: tell clang -Wno-pointer-bool-conversionbagder/clang-pointer-bool
To hush compiler warnings we don't care for: error: address of function 'X' will always evaluate to 'true' Fixes #8197 Closes #....
-rw-r--r--m4/curl-compilers.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4
index 5fb17cc8c..988abdb8a 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)