Re: [nft PATCH] libnftables: Split code into frontend and library

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

 



On Tue, Nov 14, 2017 at 09:17:10PM +0100, Phil Sutter wrote:
> This finally creates the libnftables shared object.
> 
> For some reason, this causes two compiler warnings to appear:
> 
> | parser_bison.y: In function 'nft_parse':
> | parser_bison.y:131:3: warning: implicit declaration of function 'nft_set_debug' [-Wimplicit-function-declaration]
> |    nft_set_debug(1, scanner);
> |    ^~~~~~~~~~~~~
> | parser_bison.c:64:25: warning: implicit declaration of function 'nft_lex' [-Wimplicit-function-declaration]
> |  #define yylex           nft_lex
> |                          ^
> | parser_bison.c:4745:16: note: in expansion of macro 'yylex'
> |        yychar = yylex (&yylval, &yylloc, scanner);
> 
> So this patch contains a workaround, namely declaring both functions
> in src/parser_bison.y. During linking the objects are found, so this is
> rather a matter of cosmetics.

Also applied, thanks Phil.

Upfront warning: I will not consider this API stable until we make the
0.9 release, so we have a bit more time to make API changes.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux