Fix compiler warnings

This commit is contained in:
Maschell 2022-05-08 12:36:55 +02:00
parent 7571b3d12b
commit d7a4c8abda

View File

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