Re: question about switch, return, break

From: George (greerga@CIRCLEMUD.ORG)
Date: 12/19/97


On Fri, 19 Dec 1997, John Evans wrote:

>Was goofing around with compiling under Win95 (EWw... Yuk!) and found a
>compiler off the Internet that would complain about missing default
>statements in switch, but gcc never said a word......

You'd be suprised at some of the stuff gcc (especially g++) passes as
correct code.  One person on the egcs mailing list said he was shocked at
how much g++ passed, before egcs pointed the "Finger of Righteous
Indignation" at the code.

Ran into a lot of C++ things when compiling MUD++ under egcs.  The KDE
project also has a lot of those previous g++ buglets.

CircleMUD 3.0 bpl12 had no new warnings under Egcs/Libc6 though.  Sounds
odd because I heard earlier there was a conflicting global variable when
using GNU Libc.  Perhaps it's in a newer version than 2.0.5c?

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST