In article <20100622182446.ga3...@nimenees.com>, Eric Haszlakiewicz <e...@nimenees.com> wrote: > >btw, there's a 5th option that is a bit in between: >switch (c) { > int myvar; >case 'a': > myvar = somevalue; > stmt; >} > >but I wouldn't recommend it b/c variable initialization on the declaration line >happens in a non-obvious way (or rather, it *doesn't* happen).
And there is no warning at all. christos