Re: intprops and warnings

2013-02-06 Thread Paul Eggert
On 02/06/13 10:23, Eric Blake wrote: > Can't you use _Pragma to #define an expression that expands to a pragma > push, expression body, and pragma pop, all in one macro expansion? If > so, then we have the fine-grained usage we need. My experience is that this doesn't work reliably. Sorry, I don

Re: intprops and warnings

2013-02-06 Thread Eric Blake
On 02/06/2013 11:01 AM, Paul Eggert wrote: > On 02/06/13 07:31, Eric Blake wrote: >> 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 > > By "elsewhere" I assume you mean "cod

Re: intprops and warnings

2013-02-06 Thread Paul Eggert
On 02/06/13 07:31, Eric Blake wrote: > 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 By "elsewhere" I assume you mean "code that doesn't include intprops.h"? Or do you mean "

Re: intprops and warnings

2013-02-06 Thread Pádraig Brady
On 02/06/2013 03:31 PM, Eric Blake wrote: 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_d

Re: intprops and warnings

2013-02-06 Thread Pádraig Brady
On 02/06/2013 03:31 PM, Eric Blake wrote: 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_d

Re: intprops and warnings

2013-02-06 Thread Eric Blake
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: co

intprops and warnings

2013-02-06 Thread Simon Josefsson
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