|
From: John L. <le...@mo...> - 2003-11-03 14:26:23
|
On Mon, Nov 03, 2003 at 11:14:58AM +0000, Nicholas Nethercote wrote: > I don't understand gcc's C99 support; it lets me do some things (such as > declarations not at the start of a block) without any command line args, > but other things, eg. "for (int i = 0; ...)" requires -std=c99. Why is > this? -std=xx means "accept code meeting that standard". "-pedantic[-errors]" is what changes whether non-standard code is accepted or not. > And is there a command-line option I can give to prevent me from > accidentally using non-block-starting declarations? -Wdeclaration-after-statement (in gcc 3.4) regards john -- Khendon's Law: If the same point is made twice by the same person, the thread is over. |