aboutsummaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorJim Fehlig <jfehlig@novell.com>2011-04-06 15:05:45 -0600
committerJim Fehlig <jfehlig@novell.com>2011-04-06 15:05:45 -0600
commit3df6fd706cd4d16b70678de3e78a7ab7a5025047 (patch)
tree3425e4d8182132917a0f099a2fd1e8a8e5b81359 /m4
parentChange locking for udev monitor and callbacks (diff)
downloadlibvirt-3df6fd706cd4d16b70678de3e78a7ab7a5025047.tar.gz
libvirt-3df6fd706cd4d16b70678de3e78a7ab7a5025047.tar.bz2
libvirt-3df6fd706cd4d16b70678de3e78a7ab7a5025047.zip
Fix build for older gcc
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.
Diffstat (limited to 'm4')
-rw-r--r--m4/virt-compile-warnings.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/m4/virt-compile-warnings.m4 b/m4/virt-compile-warnings.m4
index 819da8fc7..8df6f9cc5 100644
--- a/m4/virt-compile-warnings.m4
+++ b/m4/virt-compile-warnings.m4
@@ -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