mirror of
https://github.com/moparisthebest/curl
synced 2024-11-04 16:45:06 -05:00
configure: let --enable-debug set -Wenum-conversion with gcc >= 10
Unfortunately, this option is not detecting the same issues as clang's -Wassign-enum flag, but should still be useful to detect future mistakes. Closes #5930
This commit is contained in:
parent
6d946ad9fe
commit
8684bb70d3
@ -1119,6 +1119,10 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
dnl Only gcc 10 or later
|
||||
if test "$compiler_num" -ge "1000"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [enum-conversion])
|
||||
fi
|
||||
;;
|
||||
#
|
||||
HP_UX_C)
|
||||
|
Loading…
Reference in New Issue
Block a user