Skip to contentSkip to conversation

build: use -Wno-sign-compare to avoid compilation warning in mini-gmp.c

PATCH New Pablo Neira Ayuso 1 participant 1 message Jan 8, 2015 netfilter

lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#0 lore raw

PATCH 1/1 build: use -Wno-sign-compare to avoid compilation warning in mini-gmp.c

CC mini-gmp.o
mini-gmp.c: In function ‘mpn_get_str_bits’:
mini-gmp.c:1176:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] mini-gmp.c: In function ‘mpz_and’:
mini-gmp.c:3650:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] mini-gmp.c: In function ‘mpz_ior’:
mini-gmp.c:3723:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] mini-gmp.c: In function ‘mpz_xor’:
mini-gmp.c:3792:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] mini-gmp.c: In function ‘mpz_set_str’:
mini-gmp.c:4167:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

---
 src/Makefile.am |    2 ++
 1 file changed, 2 insertions(+)
src/Makefile.am +2 -0
index 099052a..2410fd3 100644
@@ -52,6 +52,8 @@ nft_SOURCES +=	cli.c
 endif
 
 if BUILD_MINIGMP
+mini-gmp.o: AM_CFLAGS += -Wno-sign-compare
+
 nft_SOURCES +=	mini-gmp.c
 endif
 
Signature · 6 lines
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html