summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2015-01-08 13:28:26 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2015-01-08 13:31:11 +0100
commit04f86e159a0feddf0e0c4c27e70b5ae9a2176969 (patch)
tree65e8c1ccede8a785e830f8e85bd609b6ebb26bf4 /src
parentb3529cf43bba5c3c4cddefa7f5d0143d510fd3ec (diff)
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] Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 099052a9..2410fd37 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -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