From d7a4c8abda8e56497a304565a0c2bd4f54d84991 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 8 May 2022 12:36:55 +0200 Subject: [PATCH] Fix compiler warnings --- wumsloader/src/entry.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wumsloader/src/entry.cpp b/wumsloader/src/entry.cpp index d10222e..e33091e 100644 --- a/wumsloader/src/entry.cpp +++ b/wumsloader/src/entry.cpp @@ -43,7 +43,11 @@ void doStart(int argc, char **argv) { if (!gInitCalled) { gInitCalled = 1; +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstringop-overread" std::string basePath = ENVRIONMENT_STRING; +#pragma GCC diagnostic pop + DEBUG_FUNCTION_LINE("We need to load the modules. basePath %s", basePath.c_str()); DirList modules(basePath + "/modules", ".wms", DirList::Files, 1); modules.SortList();