[Buildroot] [PATCH 1/1] package/ipset: Fix compile error

Baruch Siach baruch at tkos.co.il
Sun Oct 19 19:16:57 UTC 2014


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 <bernd.kuhls at t-online.de>
> ---
>  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 -



More information about the buildroot mailing list