bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: intprops and warnings


From: Eric Blake
Subject: Re: intprops and warnings
Date: Wed, 06 Feb 2013 08:31:14 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

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

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]