mirror of
https://github.com/curl/curl.git
synced 2026-08-25 00:33:31 +03:00
build: enable -Wimplicit-int-enum-cast compiler warning, fix issues
Offered by clang 21+. Closes #20990
This commit is contained in:
parent
d86fd143a1
commit
59405ffb7d
4 changed files with 5 additions and 2 deletions
|
|
@ -952,6 +952,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
|||
dnl clang 21 or later
|
||||
if test "$compiler_num" -ge "2101"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [c++-hidden-decl])
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [implicit-int-enum-cast])
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [jump-misses-init])
|
||||
tmp_CFLAGS="$tmp_CFLAGS -Wno-implicit-void-ptr-cast"
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [tentative-definition-compat])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue