bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH] intprops: add WRAPV and const flavors for GCC 5


From: Jim Meyering
Subject: Re: [PATCH] intprops: add WRAPV and const flavors for GCC 5
Date: Tue, 3 Nov 2015 09:04:38 -0800

On Tue, Nov 3, 2015 at 5:26 AM, Pádraig Brady <address@hidden> wrote:
> FYI I just noticed this when compiling coreutils with GCC 5.1.1
>
> test-intprops.c: In function 'main':
> test-intprops.c:199:3: error: string length '5031' is greater than the length 
> '4095' ISO C99 compilers are required to support [-Werror=overlength-strings]
>    CHECK_BINOP (/, DIVIDE, INT_MIN, -1, int,
>    ^
>   CC       test-isatty.o
>   CC       test-isblank.o
> test-intprops.c:202:3: error: string length '4737' is greater than the length 
> '4095' ISO C99 compilers are required to support [-Werror=overlength-strings]
>    CHECK_BINOP (/, DIVIDE, (unsigned int) INT_MIN, -1u, unsigned int,
>    ^
>   CC       test-isnand-nolibm.o
> In file included from test-intprops.c:28:0:
> ../lib/intprops.h:357:60: error: suggest parentheses around '-' inside '<<' 
> [-Werror=parentheses]
>  #define INT_LEFT_SHIFT_WRAPV(a, b) _GL_INT_OP_WRAPV (a, b, <<)

I have fixed the latter with the attached, just-pushed patch:

Attachment: 0001-intprops-add-parentheses-for-when-OP-has-precedence-.patch
Description: Text Data


reply via email to

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