diff mbox series

[conntrack-tools] build: use -Wno-sign-compare with autogenerated flex code

Message ID 20180509084544.13362-1-pablo@netfilter.org
State Accepted
Delegated to: Pablo Neira
Headers show
Series [conntrack-tools] build: use -Wno-sign-compare with autogenerated flex code | expand

Commit Message

Pablo Neira Ayuso May 9, 2018, 8:45 a.m. UTC
CC       read_config_lex.o
read_config_lex.c: In function ‘yy_get_next_buffer’:
read_config_lex.c:2101:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for ( n = 0; n < max_size && \
                  ^
read_config_lex.c:3016:3: note: in expansion of macro ‘YY_INPUT’
   YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
   ^~~~~~~~

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
 src/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Arturo Borrero Gonzalez May 9, 2018, 10:17 a.m. UTC | #1
On 9 May 2018 at 10:45, Pablo Neira Ayuso <pablo@netfilter.org> wrote:
>   CC       read_config_lex.o
> read_config_lex.c: In function ‘yy_get_next_buffer’:
> read_config_lex.c:2101:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>    for ( n = 0; n < max_size && \
>                   ^
> read_config_lex.c:3016:3: note: in expansion of macro ‘YY_INPUT’
>    YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
>    ^~~~~~~~
>

oh, annoying... thanks!
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox series

Patch

diff --git a/src/Makefile.am b/src/Makefile.am
index a9a868596e69..c4393119f54a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -63,7 +63,7 @@  conntrackd_SOURCES += systemd.c
 endif
 
 # yacc and lex generate dirty code
-read_config_yy.o read_config_lex.o: AM_CFLAGS += -Wno-missing-prototypes -Wno-missing-declarations -Wno-implicit-function-declaration -Wno-nested-externs -Wno-undef -Wno-redundant-decls
+read_config_yy.o read_config_lex.o: AM_CFLAGS += -Wno-missing-prototypes -Wno-missing-declarations -Wno-implicit-function-declaration -Wno-nested-externs -Wno-undef -Wno-redundant-decls -Wno-sign-compare
 
 conntrackd_LDADD = ${LIBMNL_LIBS} ${LIBNETFILTER_CONNTRACK_LIBS} \
 		   ${libdl_LIBS} ${LIBNFNETLINK_LIBS}