Compile warning with CATCH_UNHANDLED_EXCEPTIONS defined


#1

\modules\juce_events\messages\juce_deletedatshutdown.cpp(71): warning C4702: unreachable code

This is only with JUCE_CATCH_UNHANDLED_EXCEPTIONS defined

Rail


#2

Hmm, interesting - I guess it managed to figure out that you have no classes derived from DeletedAtShutdown which can throw exceptions in their destructors. I guess I’ll wrap some warning-suppression around it then…


#3

Odd… that didn’t fix the warning (I would have thought it should)

Rail


#4

Huh… That one seemed like a no-brainer to me! Does it work if you move the pragmas around, e.g. outside the function scope?


#5

Me too… and no… very odd… this is VS 2015

Rail


#6

Oh wait… outside the function scope works (sorry - I’d tried outside the for loop and in juce_ApplicationBase.h)

Rail


#7

Ah, the mysteries of the MS compiler… Thanks, I’ll update it.