CPP warning
Neil Booth
neil@daikokuya.demon.co.uk
Wed Apr 11 11:30:00 GMT 2001
Mark Mitchell wrote:-
> On the 3.0 branch, I often get warnings like:
>
> /isip/d108/alphonso/tools/include/MVector.h:218:53: warning: expected to return to line number 42
>
> when using a preprocessed source file, especially one preprocessed
> with GCC 2.95.x.
>
> Do y'all know what causes this? Can it be fixed easily?
>
> It's not a very useful error message if you're not a compiler
> developer since there's pretty much nothing you can do about it --
> it's not like a construct in your source code that you can change.
It's just a sanity check, and easy to get rid of if you like. It happens
on some preprocessed source from older compilers; it shouldn't happen with
current CPP preprocessed files. But I don't imagine many people keeping
old preprocessed source around to compile, so I couldn't see problems there.
Let me know what you'd like me to do.
By the way, please use my new e-mail address; everything to my old address
goes in the spam bin (with a > 95% successful hit rate at present; I'm not
sure whether to count your mail as a successful hit or not :-))
Neil.
More information about the Gcc
mailing list