From eefa72afa1978a9dea10f5b1833fcc8f58a3468e Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Mon, 3 Jul 2017 18:59:12 +0100 Subject: 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. --- backends/fs/ds/ds-fs-factory.cpp | 3 --- backends/fs/ps2/ps2-fs-factory.cpp | 4 ---- backends/fs/psp/psp-fs-factory.cpp | 4 ---- backends/fs/wii/wii-fs-factory.cpp | 4 ---- 4 files changed, 15 deletions(-) (limited to 'backends/fs') diff --git a/backends/fs/ds/ds-fs-factory.cpp b/backends/fs/ds/ds-fs-factory.cpp index 98c522f1d6..e99033eebd 100644 --- a/backends/fs/ds/ds-fs-factory.cpp +++ b/backends/fs/ds/ds-fs-factory.cpp @@ -28,9 +28,6 @@ #include "backends/fs/ds/ds-fs.h" #include "dsmain.h" //for the isGBAMPAvailable() function -namespace Common { -DECLARE_SINGLETON(DSFilesystemFactory); -} AbstractFSNode *DSFilesystemFactory::makeRootFileNode() const { if (DS::isGBAMPAvailable()) { diff --git a/backends/fs/ps2/ps2-fs-factory.cpp b/backends/fs/ps2/ps2-fs-factory.cpp index 9c12d27a6e..93525eba1a 100644 --- a/backends/fs/ps2/ps2-fs-factory.cpp +++ b/backends/fs/ps2/ps2-fs-factory.cpp @@ -28,10 +28,6 @@ #include "backends/fs/ps2/ps2-fs-factory.h" #include "backends/fs/ps2/ps2-fs.h" -namespace Common { -DECLARE_SINGLETON(Ps2FilesystemFactory); -} - AbstractFSNode *Ps2FilesystemFactory::makeRootFileNode() const { return new Ps2FilesystemNode(); } diff --git a/backends/fs/psp/psp-fs-factory.cpp b/backends/fs/psp/psp-fs-factory.cpp index 303ea242c5..fa92bf42d1 100644 --- a/backends/fs/psp/psp-fs-factory.cpp +++ b/backends/fs/psp/psp-fs-factory.cpp @@ -44,10 +44,6 @@ #include -namespace Common { -DECLARE_SINGLETON(PSPFilesystemFactory); -} - AbstractFSNode *PSPFilesystemFactory::makeRootFileNode() const { return new PSPFilesystemNode(); } diff --git a/backends/fs/wii/wii-fs-factory.cpp b/backends/fs/wii/wii-fs-factory.cpp index f234c1e300..1c95e4e42f 100644 --- a/backends/fs/wii/wii-fs-factory.cpp +++ b/backends/fs/wii/wii-fs-factory.cpp @@ -43,10 +43,6 @@ #include #endif -namespace Common { -DECLARE_SINGLETON(WiiFilesystemFactory); -} - WiiFilesystemFactory::WiiFilesystemFactory() : _dvdMounted(false), _smbMounted(false), -- cgit v1.2.3