diff --git a/sources/libcore/concurrent/concurrent.cpp b/sources/libcore/concurrent/concurrent.cpp index 70992cce..56880807 100644 --- a/sources/libcore/concurrent/concurrent.cpp +++ b/sources/libcore/concurrent/concurrent.cpp @@ -674,7 +674,10 @@ namespace cage void currentThreadName(const String &name) { +#ifdef CAGE_DEBUG const String oldName = currentThreadName_(); +#endif + currentThreadName_() = name; if (!name.empty()) diff --git a/sources/libcore/filesystem/abstractFiles.cpp b/sources/libcore/filesystem/abstractFiles.cpp index c47b1505..77a986cc 100644 --- a/sources/libcore/filesystem/abstractFiles.cpp +++ b/sources/libcore/filesystem/abstractFiles.cpp @@ -76,13 +76,6 @@ namespace cage return archiveOpenZipTry(parent->openFile(inPath, FileMode(true, false))); } - void walkLeft(String &p, String &i) - { - const String s = pathJoin(p, ".."); - i = pathJoin(subString(p, s.length() + 1, m), i); - p = s; - } - void walkRight(String &p, String &i) { const String k = split(i, "/"); @@ -90,6 +83,13 @@ namespace cage } #ifdef CAGE_DEBUG + void walkLeft(String &p, String &i) + { + const String s = pathJoin(p, ".."); + i = pathJoin(subString(p, s.length() + 1, m), i); + p = s; + } + class WalkTester : private Immovable { public: diff --git a/sources/libengine/graphics/shaderProgram.cpp b/sources/libengine/graphics/shaderProgram.cpp index cea71fc3..9595476e 100644 --- a/sources/libengine/graphics/shaderProgram.cpp +++ b/sources/libengine/graphics/shaderProgram.cpp @@ -774,8 +774,8 @@ namespace cage void ShaderProgram::compute(const Vec3i &groupsCounts) { - const ShaderProgramImpl *impl = (const ShaderProgramImpl *)this; #ifdef CAGE_ASSERT_ENABLED + const ShaderProgramImpl *impl = (const ShaderProgramImpl *)this; CAGE_ASSERT(boundShader == impl->id); #endif glDispatchCompute(groupsCounts[0], groupsCounts[1], groupsCounts[2]); diff --git a/sources/test-core/exceptions.cpp b/sources/test-core/exceptions.cpp index c5cb3e7f..f2090bcf 100644 --- a/sources/test-core/exceptions.cpp +++ b/sources/test-core/exceptions.cpp @@ -117,4 +117,6 @@ void testExceptions() } detail::globalBreakpointOverride(true); } + + (void)&assertFailureFunction; // maybe unused }