[PATCH] xalloc: avoid GCC 5.1 warning on 32 bit

2015-10-02 Thread Pádraig Brady
* lib/xalloc.h: Disable -Wstrict-overflow for uses of xalloc_oversized(), which was seen to give this warning on GCC 5.1 on 32 bit: "assuming signed overflow does not occur when simplifying conditional". --- ChangeLog| 8 lib/xalloc.h | 10 ++ 2 files changed, 18 insertions(+

Re: [PATCH] xalloc: avoid GCC 5.1 warning on 32 bit

2015-10-02 Thread Paul Eggert
On 10/02/2015 12:24 PM, Pádraig Brady wrote: +/* GCC 5.1 gives an erroneous warning on 32 bit for xalloc_oversized(): + "assuming signed overflow does not occur when simplifying conditional". */ +#if (__GNUC__ == 4 && 6 <= __GNUC_MINOR__) || 4 < __GNUC__ +# pragma GCC diagnostic push +# pragma

Re: [PATCH] xalloc: avoid GCC 5.1 warning on 32 bit

2015-10-02 Thread Pádraig Brady
On 02/10/15 21:22, Paul Eggert wrote: > On 10/02/2015 12:24 PM, Pádraig Brady wrote: >> +/* GCC 5.1 gives an erroneous warning on 32 bit for xalloc_oversized(): >> + "assuming signed overflow does not occur when simplifying conditional". >> */ >> +#if (__GNUC__ == 4 && 6 <= __GNUC_MINOR__) || 4