diff --git a/Shader.cpp b/Shader.cpp index 2a4d9ee..482d74d 100644 --- a/Shader.cpp +++ b/Shader.cpp @@ -261,6 +261,7 @@ void Shader::reset() modelview = glm::identity(); iTransform = glm::identity(); color = glm::vec4(1.f, 1.f, 1.f, 1.f); + blending = BLEND_OPACITY; } diff --git a/SystemToolkit.cpp b/SystemToolkit.cpp index c495eec..2dd83f2 100644 --- a/SystemToolkit.cpp +++ b/SystemToolkit.cpp @@ -347,27 +347,29 @@ list SystemToolkit::list_directory(const string& path, const string& fil void SystemToolkit::open(const string& url) { + int ignored __attribute__((unused)); #ifdef WIN32 ShellExecuteA( nullptr, nullptr, url.c_str(), nullptr, nullptr, 0 ); #elif defined APPLE char buf[2048]; sprintf( buf, "open '%s'", url.c_str() ); - (void) system( buf ); + ignored = system( buf ); #else char buf[2048]; sprintf( buf, "xdg-open '%s'", url.c_str() ); - (void) system( buf ); + ignored = system( buf ); #endif } void SystemToolkit::execute(const string& command) { + int ignored __attribute__((unused)); #ifdef WIN32 ShellExecuteA( nullptr, nullptr, url.c_str(), nullptr, nullptr, 0 ); #elif defined APPLE (void) system( command.c_str() ); #else - (void) system( command.c_str() ); + ignored = system( command.c_str() ); #endif } // example :