diff options
author | Thierry Crozat | 2017-07-03 18:59:12 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-10 21:11:20 +0200 |
commit | eefa72afa1978a9dea10f5b1833fcc8f58a3468e (patch) | |
tree | 97ef0c982cad7cc54cf93c0f6a6cec3d072b1a69 /backends/platform/psp | |
parent | 1141bfc1a603decce8f02a85a1fc76073a646d1a (diff) | |
download | scummvm-rg350-eefa72afa1978a9dea10f5b1833fcc8f58a3468e.tar.gz scummvm-rg350-eefa72afa1978a9dea10f5b1833fcc8f58a3468e.tar.bz2 scummvm-rg350-eefa72afa1978a9dea10f5b1833fcc8f58a3468e.zip |
COMMON: Change way the Singleton instances are instantiated
This fixes tons of warnings with clang from a recent xcode version on
macOS (and possibly other systems) complaining that an instantiation
of _singleton is required but no definition is available.
Diffstat (limited to 'backends/platform/psp')
-rw-r--r-- | backends/platform/psp/display_manager.cpp | 4 | ||||
-rw-r--r-- | backends/platform/psp/powerman.cpp | 4 | ||||
-rw-r--r-- | backends/platform/psp/rtc.cpp | 3 |
3 files changed, 0 insertions, 11 deletions
diff --git a/backends/platform/psp/display_manager.cpp b/backends/platform/psp/display_manager.cpp index 2e995c809e..ffd37414be 100644 --- a/backends/platform/psp/display_manager.cpp +++ b/backends/platform/psp/display_manager.cpp @@ -62,10 +62,6 @@ const OSystem::GraphicsMode DisplayManager::_supportedModes[] = { // Class VramAllocator ----------------------------------- -namespace Common { -DECLARE_SINGLETON(VramAllocator); -} - //#define __PSP_DEBUG_FUNCS__ /* For debugging the stack */ //#define __PSP_DEBUG_PRINT__ diff --git a/backends/platform/psp/powerman.cpp b/backends/platform/psp/powerman.cpp index 3cd663e3c7..4b415ef50e 100644 --- a/backends/platform/psp/powerman.cpp +++ b/backends/platform/psp/powerman.cpp @@ -30,10 +30,6 @@ //#define __PSP_DEBUG_PRINT__ #include "backends/platform/psp/trace.h" -namespace Common { -DECLARE_SINGLETON(PowerManager); -} - // Function to debug the Power Manager (we have no output to screen) inline void PowerManager::debugPM() { PSP_DEBUG_PRINT("PM status[%d]. Listcount[%d]. CriticalCount[%d]. ThreadId[%x]. Error[%d]\n", diff --git a/backends/platform/psp/rtc.cpp b/backends/platform/psp/rtc.cpp index d01bd8f83a..67ad36c334 100644 --- a/backends/platform/psp/rtc.cpp +++ b/backends/platform/psp/rtc.cpp @@ -34,9 +34,6 @@ // Class PspRtc --------------------------------------------------------------- -namespace Common { -DECLARE_SINGLETON(PspRtc); -} void PspRtc::init() { // init our starting ticks uint32 ticks[2]; |