Skip to content

Commit

Permalink
m4/curl-compilers: tell clang -Wno-pointer-bool-conversion
Browse files Browse the repository at this point in the history
To hush compiler warnings we don't care for: error: address of function
'X' will always evaluate to 'true'

Fixes #8197
Closes #....
  • Loading branch information
bagder committed Dec 28, 2021
1 parent 1914465 commit b210e43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions m4/curl-compilers.m4
Expand Up @@ -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)
Expand Down

0 comments on commit b210e43

Please sign in to comment.