[PATCH] quotearg: constify get_quoting_style parameters

2015-11-03 Thread Pádraig Brady
* lib/quotearg.h (get_quoting_style): Mark parameter as const. * lib/quotearg.c (get_quoting_style): Likewise. --- ChangeLog | 6 ++ lib/quotearg.c | 2 +- lib/quotearg.h | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2b8276f..81c5391 10

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

2015-11-03 Thread Pádraig Brady
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,

Re: [PATCH] Re: stdint.h, C++ and __STDC_LIMIT_MACROS

2015-11-03 Thread Pedro Alves
On 11/03/2015 02:32 AM, Paul Eggert wrote: > Pedro Alves wrote: >> Instead of trying to detect the right types, detect >> good-enough-pre-C++11 stdint.h and in such case make the substitute >> stdint.h just wrap the system's stdint.h with >> __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS defined. > >

Re: [PATCH] Re: stdint.h, C++ and __STDC_LIMIT_MACROS

2015-11-03 Thread Pedro Alves
On 11/03/2015 02:45 PM, Pedro Alves wrote: > On 11/03/2015 02:32 AM, Paul Eggert wrote: >> Pedro Alves wrote: >>> Instead of trying to detect the right types, detect >>> good-enough-pre-C++11 stdint.h and in such case make the substitute >>> stdint.h just wrap the system's stdint.h with >>> __STDC_

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

2015-11-03 Thread Jim Meyering
On Tue, Nov 3, 2015 at 5:26 AM, Pádraig Brady 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 [-Werr