]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Fix build for older gcc
authorJim Fehlig <jfehlig@novell.com>
Wed, 6 Apr 2011 21:05:45 +0000 (15:05 -0600)
committerJim Fehlig <jfehlig@novell.com>
Wed, 6 Apr 2011 21:05:45 +0000 (15:05 -0600)
With gcc 4.3.4 I'm seeing the following warning failure

cc1: warnings being treated as errors
cc1: error: -funit-at-a-time is required for inlining of functions
that are only called once [-Wdisabled-optimization]

Add -funit-at-a-time to WARN_CFLAGS.

m4/virt-compile-warnings.m4

index 819da8fc77e0ab2ff51e4279e96fc2c2f21a1aeb..8df6f9cc5a60e25884983061f7c7f0bcf00d9185 100644 (file)
@@ -112,6 +112,7 @@ AC_DEFUN([LIBVIRT_COMPILE_WARNINGS],[
         gl_WARN_ADD([-fexceptions])
         gl_WARN_ADD([-fasynchronous-unwind-tables])
         gl_WARN_ADD([-fdiagnostics-show-option])
+        gl_WARN_ADD([-funit-at-a-time])
 
         if test "$enable_compile_warnings" = "error"
         then