SV: [PATCH] don't diagnose -Wchar-subscript for safe char literal
Daniel Marjamäki
Daniel.Marjamaki at evidente.se
Wed Apr 23 10:59:42 PDT 2014
Hello!
As you know, negative index on a pointer is not always bad:
char buffer[1024];
static char test(char *foo) {
return foo['\xFF'];
}
void somecaller() {
char c = test(buffer + 10);
}
Best regards,
Daniel Marjamäki
..................................................................................................................
Daniel Marjamäki
Senior Engineer
Evidente ES East AB
Warfvinges väg 34 SE-112 51 Stockholm Sweden
Mobile: +46 (0)709 12 42 62
E-mail: Daniel.Marjamaki at evidente.se
www.evidente.se
More information about the cfe-commits
mailing list