warn/croak on "string" "string" auto-joins
Adam Monsen
haircut@gmail.com
Tue Aug 17 17:37:00 GMT 2004
String auto-joins can be dangerous. Is there a way to tell the
compiler to warn/croak when an auto-join occurs?
For instance, find the bug in this code:
char *months[] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul",
"Aug" "Sep", "Oct", "Nov", "Dec"};
If not, I'd like to suggest a way to ask the compiler to strictly
check for this.
--
Adam Monsen <adamm@wazamatta.com>
http://adammonsen.com/
More information about the Gcc
mailing list