]> xenbits.xensource.com Git - libvirt.git/commitdiff
maint: show which compiler warning triggered
authorEric Blake <eblake@redhat.com>
Tue, 30 Mar 2010 16:09:21 +0000 (10:09 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 30 Mar 2010 17:29:09 +0000 (11:29 -0600)
* acinclude.m4 (LIBVIRT_COMPILE_WARNINGS): Add
-fdiagnostics-show-option.

acinclude.m4

index f00933f0f901ff9045c2719c1a8ba6097d150a71..7fa2d679a2843023625b4cccaa994b5ae93c0599 100644 (file)
@@ -13,13 +13,17 @@ AC_DEFUN([LIBVIRT_COMPILE_WARNINGS],[
     dnl ******************************
 
     AC_ARG_ENABLE(compile-warnings,
-                  AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
-                                 [Turn on compiler warnings]),,
+                  [AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
+                                 [Turn on compiler warnings])],,
                   [enable_compile_warnings="m4_default([$1],[maximum])"])
 
     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
     no)