configure: set -Wextra-semi-stmt for clang with --enable-debug
To have it properly complain on empty statements with no effect. Ref: #6376 Closes #6378
This commit is contained in:
Родитель
b9746575a9
Коммит
26e46617b9
|
@ -948,6 +948,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
|||
dnl clang 7 or later
|
||||
if test "$compiler_num" -ge "700"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [assign-enum])
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [extra-semi-stmt])
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
|
|
Загрузка…
Ссылка в новой задаче