mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 19:45:21 +00:00
maint: show which compiler warning triggered
* acinclude.m4 (LIBVIRT_COMPILE_WARNINGS): Add -fdiagnostics-show-option.
This commit is contained in:
parent
4eb8022260
commit
7b5114f62b
10
acinclude.m4
10
acinclude.m4
@ -13,13 +13,17 @@ AC_DEFUN([LIBVIRT_COMPILE_WARNINGS],[
|
|||||||
dnl ******************************
|
dnl ******************************
|
||||||
|
|
||||||
AC_ARG_ENABLE(compile-warnings,
|
AC_ARG_ENABLE(compile-warnings,
|
||||||
AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
|
[AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
|
||||||
[Turn on compiler warnings]),,
|
[Turn on compiler warnings])],,
|
||||||
[enable_compile_warnings="m4_default([$1],[maximum])"])
|
[enable_compile_warnings="m4_default([$1],[maximum])"])
|
||||||
|
|
||||||
warnCFLAGS=
|
warnCFLAGS=
|
||||||
|
|
||||||
common_flags="-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables"
|
common_flags=
|
||||||
|
common_flags="$common_flags -Wp,-D_FORTIFY_SOURCE=2"
|
||||||
|
common_flags="$common_flags -fexceptions"
|
||||||
|
common_flags="$common_flags -fasynchronous-unwind-tables"
|
||||||
|
common_flags="$common_flags -fdiagnostics-show-option"
|
||||||
|
|
||||||
case "$enable_compile_warnings" in
|
case "$enable_compile_warnings" in
|
||||||
no)
|
no)
|
||||||
|
Loading…
Reference in New Issue
Block a user