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:
Le Philousophe 2024-08-28 17:09:56 +02:00
parent 21c7f92e80
commit 3276c7d501
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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() {}