Type of expression in switch statement
Richard O'Keefe
ok at cs.mu.oz.au
Mon Oct 30 19:57:56 AEST 1989
In article <20448 at mimsy.umd.edu>, chris at mimsy.umd.edu (Chris Torek) writes:
> In article <1989Oct30.043155.1931 at eng.umd.edu> nero at eng.umd.edu
> (Oren L. Stern) writes:
[switch (pointer expression)]
> This was fixed some time ago in 4BSD:
> "foo.c", line n: warning: switch expression not type int
"ELXSI 4.3 BSD UNIX" cc accepts it, and lint accepts it.
"UNIX System V Release ax.2.2f ns32332" cc warns but produces workable code,
lint warns. I don't think this is a PCC compiler.
More information about the Comp.lang.c
mailing list