mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 04:28:37 +00:00
ENGINES: Fix global constructor warning
I don't know why Clang (and GCC) creates a global constructor when we use a global variable with a pointer. Using an array instead seems to please both of them.
This commit is contained in:
parent
21c7f92e80
commit
3276c7d501
@ -36,7 +36,7 @@
|
||||
#include "graphics/managed_surface.h"
|
||||
#include "graphics/thumbnail.h"
|
||||
|
||||
const char *MetaEngineDetection::GAME_NOT_IMPLEMENTED = _s("Game not implemented");
|
||||
const char MetaEngineDetection::GAME_NOT_IMPLEMENTED[] = _s("Game not implemented");
|
||||
|
||||
Common::String MetaEngine::getSavegameFile(int saveGameIdx, const char *target) const {
|
||||
if (!target)
|
||||
|
@ -129,7 +129,7 @@ public:
|
||||
* This is the message to use in detection tables when
|
||||
* the game logic is not implemented
|
||||
*/
|
||||
static const char *GAME_NOT_IMPLEMENTED;
|
||||
static const char GAME_NOT_IMPLEMENTED[];
|
||||
|
||||
virtual ~MetaEngineDetection() {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user