1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Warnings: Add warning-wrangling header

This commit is contained in:
reuk 2020-03-21 16:07:27 +00:00
parent 175644e8c1
commit 5f348c3040
93 changed files with 581 additions and 903 deletions

View file

@ -73,10 +73,7 @@
#include "native/juce_osx_MessageQueue.h"
#if JUCE_CLANG
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wundeclared-selector"
#endif
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wundeclared-selector")
#if JUCE_MAC
#include "native/juce_mac_MessageManager.mm"
@ -84,9 +81,7 @@
#include "native/juce_ios_MessageManager.mm"
#endif
#if JUCE_CLANG
#pragma clang diagnostic pop
#endif
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
#elif JUCE_WINDOWS
#include "native/juce_win32_Messaging.cpp"

View file

@ -43,12 +43,9 @@ DeletedAtShutdown::~DeletedAtShutdown()
getDeletedAtShutdownObjects().removeFirstMatchingValue (this);
}
#if JUCE_MSVC
// Disable unreachable code warning, in case the compiler manages to figure out that
// you have no classes of DeletedAtShutdown that could throw an exception in their destructor.
#pragma warning (push)
#pragma warning (disable: 4702)
#endif
// Disable unreachable code warning, in case the compiler manages to figure out that
// you have no classes of DeletedAtShutdown that could throw an exception in their destructor.
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4702)
void DeletedAtShutdown::deleteAll()
{
@ -87,8 +84,6 @@ void DeletedAtShutdown::deleteAll()
getDeletedAtShutdownObjects().clear(); // just to make sure the array doesn't have any memory still allocated
}
#if JUCE_MSVC
#pragma warning (pop)
#endif
JUCE_END_IGNORE_WARNINGS_MSVC
} // namespace juce