On Fri, 15 Apr 2005, Dave Korn wrote:

> 5)  Do I really need to worry about putting return statements after calling
> "LogSingleton::GetInstance().exit (1);" ?  There was a reference in there to
> some kind of 'issue' with ::exit, but I haven't yet done an archive search
> to try and understand what's going on - does anyone remember?

IIRC, gcc needs to know that the exit() function never returns.  It does
know for ::exit() (because there's an appropriate attribute on it), but it
doesn't for LogSingleton::exit(), and so will complain that the functions
are missing a return statement.  So you need to put those in to quell the
warnings.
        Igor
-- 
                                http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_                [EMAIL PROTECTED]
ZZZzz /,`.-'`'    -.  ;-;;,_            [EMAIL PROTECTED]
     |,4-  ) )-,_. ,\ (  `'-'           Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL     a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

Reply via email to