netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* compilation warning --with-mini-gmp
@ 2018-01-09 13:26 Pablo Neira Ayuso
  2018-01-10 12:43 ` [nft PATCH] src/Makefile: Restore per object CFLAGS Phil Sutter
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Neira Ayuso @ 2018-01-09 13:26 UTC (permalink / raw)
  To: Phil Sutter; +Cc: netfilter-devel

We hit this since conversion to library:

mini-gmp.c: In function ‘mpn_get_str_bits’:
mini-gmp.c:1176:17: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
       if (shift >= GMP_LIMB_BITS && ++i < un)
                 ^
mini-gmp.c: In function ‘mpz_and’:
mini-gmp.c:1406:31: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
 #define MPZ_REALLOC(z,n) ((n) > (z)->_mp_alloc   \
                               ^
mini-gmp.c:3650:8: note: in expansion of macro ‘MPZ_REALLOC’
   rp = MPZ_REALLOC (r, rn + rc);
        ^
mini-gmp.c: In function ‘mpz_ior’:
mini-gmp.c:1406:31: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
 #define MPZ_REALLOC(z,n) ((n) > (z)->_mp_alloc   \
                               ^
mini-gmp.c:3723:8: note: in expansion of macro ‘MPZ_REALLOC’
   rp = MPZ_REALLOC (r, rn + rc);
        ^
mini-gmp.c: In function ‘mpz_xor’:
mini-gmp.c:1406:31: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
 #define MPZ_REALLOC(z,n) ((n) > (z)->_mp_alloc   \
                               ^
mini-gmp.c:3792:8: note: in expansion of macro ‘MPZ_REALLOC’
   rp = MPZ_REALLOC (r, un + rc);
        ^
mini-gmp.c: In function ‘mpz_set_str’:
mini-gmp.c:4167:17: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]

There is a knob that removes -Wsign-compare for this file, which is a
cached copy from libgmp that we don't want to modify.

If you have some spare cycles, I'd appreciate.

Thanks Phil.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-01-10 14:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-09 13:26 compilation warning --with-mini-gmp Pablo Neira Ayuso
2018-01-10 12:43 ` [nft PATCH] src/Makefile: Restore per object CFLAGS Phil Sutter
2018-01-10 14:23   ` Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).