1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04: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:
Daniel Stenberg 2020-09-07 11:03:30 +02:00
parent 6d946ad9fe
commit 8684bb70d3
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1119,6 +1119,10 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
fi fi
fi 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) HP_UX_C)