From mboxrd@z Thu Jan 1 00:00:00 1970 From: Baruch Siach Date: Sun, 19 Oct 2014 22:16:57 +0300 Subject: [Buildroot] [PATCH 1/1] package/ipset: Fix compile error In-Reply-To: <1413745147-12299-1-git-send-email-bernd.kuhls@t-online.de> References: <1413745147-12299-1-git-send-email-bernd.kuhls@t-online.de> Message-ID: <20141019191657.GB2220@tarshish> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hi Bernd, On Sun, Oct 19, 2014 at 08:59:07PM +0200, Bernd Kuhls wrote: > Error occured with an allyespackageconfig setup: > > In file included from print.c:19:0: > print.c: In function 'ipset_print_ip': > ../include/libipset/data.h:150:1: error: inlining failed in call to 'ipset_data_test': call is unlikely and code size would grow [-Werror=inline] > ipset_data_test(const struct ipset_data *data, enum ipset_opt opt) > ^ > print.c:273:21: error: called from here [-Werror=inline] > if (ipset_data_test(data, cidropt)) { > > Signed-off-by: Bernd Kuhls > --- > package/ipset/ipset.mk | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/package/ipset/ipset.mk b/package/ipset/ipset.mk > index d3dbc67..b1518f4 100644 > --- a/package/ipset/ipset.mk > +++ b/package/ipset/ipset.mk > @@ -13,4 +13,6 @@ IPSET_AUTORECONF = YES > IPSET_LICENSE = GPLv2 > IPSET_LICENSE_FILES = COPYING > > +IPSET_CONF_ENV = ax_cv_cflags_gcc_option__Winline="" > + > $(eval $(autotools-package)) Instead of squashing each type of compiler warning, why not remove -Werror entirely? It's not that useful when you only want to build the package. baruch -- http://baruch.siach.name/blog/ ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -