bug-cppi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-cppi] [PATCH 1/2] build: silence gcc warning


From: Eric Blake
Subject: [bug-cppi] [PATCH 1/2] build: silence gcc warning
Date: Wed, 7 Apr 2010 06:41:26 -0600

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]

* configure.ac: Use of -Wdisabled-optimization requires
-funit-at-a-time.
---
 configure.ac |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index de51232..add1e1a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -66,6 +66,7 @@ if test "$gl_gcc_warnings" = yes; then
   gl_WARN_ADD([-Wno-pointer-sign])     # Too many warnings for now
   gl_WARN_ADD([-Wno-unused-parameter]) # Too many warnings for now
   gl_WARN_ADD([-fdiagnostics-show-option])
+  gl_WARN_ADD([-funit-at-a-time])

   AC_SUBST([WARN_CFLAGS])

-- 
1.6.6.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]