From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_40,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1108a1,12f4d07c572005e3 X-Google-Attributes: gid1108a1,public X-Google-Thread: 103376,12f4d07c572005e3 X-Google-Attributes: gid103376,public X-Google-Thread: f43e6,12f4d07c572005e3 X-Google-Attributes: gidf43e6,public X-Google-Thread: ff6c8,12f4d07c572005e3 X-Google-Attributes: gidff6c8,public X-Google-Thread: 10db24,12f4d07c572005e3 X-Google-Attributes: gid10db24,public From: kingdon@harvey.cyclic.com (Jim Kingdon) Subject: Re: Java Risks (Was: Ada News Brief - 96-05-24 Date: 1996/06/09 Message-ID: #1/1 X-Deja-AN: 159339490 sender: kingdon@harvey.cyclic.com references: <4o56db$p66@ns1.sw-eng.falls-church.va.us> organization: very little newsgroups: comp.lang.ada,comp.sw.components,comp.object,comp.software-eng,comp.edu Date: 1996-06-09T00:00:00+00:00 List-Id: (I probably have something better to do than following up, but....) How about this one which prints nothing because mispelled 'default:' is treated as a goto label: enum {red,white,blue} color = white; switch (color) { case red: printf("red"); break; case blue: printf("blue"); /* Fall thru */ defualt: printf("blue or other color"); }; My compiler catches this: bash$ gcc -Wall def.c def.c: In function `main': def.c:9: warning: enumeration value `white' not handled in switch def.c:8: warning: label `defualt' defined but not used bash$