This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] add benchmark for strcoll


On 03/09/2015 06:37 PM, Mike Frysinger wrote:
> On 09 Mar 2015 10:20, Leonhard Holz wrote:
>> --- a/benchtests/bench-strcoll.c +++
>> b/benchtests/bench-strcoll.c
>> 
>> +const char *locales[] = {
> 
> static.

And probably even:

static const char *const locales[] = {

Order of const matters here.  If I recall correctly, GCC will not warn
about duplicate const and create a non-constant silently if you get it
wrong.

-- 
Florian Weimer / Red Hat Product Security


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]