[PATCH] turn off -Winline to avoid compiler warning/error on rawhide
Jim Meyering
jim at meyering.net
Thu Feb 17 08:38:01 UTC 2011
Testing latest mongodb on rawhide, I hit this:
rest.c: In function 'prov_iterator':
setup.h:87:1: error: inlining failed in call to 'kv_hash_insert_new.part.3':
call is unlikely and code size would grow [-Werror=inline]
Here's the fix:
>From 7a8ab6fafc11eed4b267f09d2d5262cf2ac91238 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering at redhat.com>
Date: Thu, 17 Feb 2011 09:36:48 +0100
Subject: [PATCH] turn off -Winline to avoid compiler warning/error on rawhide
* configure.ac (WERROR_CFLAGS): Turn off -Winline
to avoid triggering warning/error on rawhide due to
setup.h's kv_hash_insert_new definition.
---
configure.ac | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index 84cdf2d..e124f8d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -122,6 +122,7 @@ if test "$gl_gcc_warnings" = yes; then
nw="$nw -Wstrict-overflow" # in bison-generated code
nw="$nw -Wunsafe-loop-optimizations" # in bison-generated code
nw="$nw -Wmissing-noreturn" # yy_fatal_error in flex-generated code
+ nw="$nw -Winline" # setup.h's kv_hash_insert_new
gl_MANYWARN_ALL_GCC([ws])
gl_MANYWARN_COMPLEMENT([ws], [$ws], [$nw])
--
1.7.4.1.11.g24231
More information about the iwhd-devel
mailing list