On 02/06/2013 08:22 AM, Simon Josefsson wrote: > Libtasn1 recently started to use the intprops module, however it > generates warnings: > > make[3]: Entering directory `/home/jas/src/libtasn1/lib' > CC decoding.lo > decoding.c: In function 'asn1_get_length_der': > decoding.c:88:15: error: comparison of unsigned expression < 0 is always > false [-Werror=type-limits]
Yes, we've known about the problem in the past: https://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00555.html https://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00561.html but I was unable to solve it at the time. Since then, we have started using gcc pragmas to push and pop warnings, maybe we could exploit that to at least allow you to still use the warning category elsewhere, when using modern gcc (with older gcc, you'd still have to avoid the warning entirely). > > Is this an unavoidable consequences of using the intprops module? Then > I'll just add -Wno-error=type-limits, although that seems unfortunate to > need that since we didn't before. Unfortunately, without patches to intprops, -Wtype-limits and intprops do not play nicely. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
