Unreachable code

Noticed this before but I thought I’d throw it up on the forum to see if anyone else was getting it.

Compiling with Visual Studio 2010, I get the following warnings

[quote]1>e:\c++\juce\src\gui\components\positioning\juce_relativecoordinatepositioner.cpp(60): warning C4702: unreachable code
1>e:\c++\juce\src\gui\components\positioning\juce_relativerectangle.cpp(137): warning C4702: unreachable code[/quote]

No biggie I guess

Yeah, it’s just the compiler being a bit over-eager in producing a warning, there’s nothing actually wrong with the code.

now i’m using the juce files inside my project, this is a problem, because i use “treat warning as errors” /WX.

So maybe we could use the ignore warning pragma in MSVC?

#pragma warning (push)
#pragma warning (disable: 4702)

//Do something
#pragma warning (pop)