diff --git a/src/Magnum/Shaders/Implementation/CreateCompatibilityShader.h b/src/Magnum/Shaders/Implementation/CreateCompatibilityShader.h index 1cccfa369..472f3a9c1 100644 --- a/src/Magnum/Shaders/Implementation/CreateCompatibilityShader.h +++ b/src/Magnum/Shaders/Implementation/CreateCompatibilityShader.h @@ -31,7 +31,9 @@ #include "Magnum/Extensions.h" #include "Magnum/Shader.h" -#ifdef MAGNUM_BUILD_STATIC +/* Enable only when compiling Shaders library and thus work around + "static symbol not used" warning when using this file for TextureTools */ +#if defined(MAGNUM_BUILD_STATIC) && defined(MAGNUM_SHADERS_EXPORT) static void importShaderResources() { CORRADE_RESOURCE_INITIALIZE(MagnumShaders_RCS) }