mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
avoid pedantic compilation warning
This commit is contained in:
@@ -261,6 +261,7 @@ void Shader::reset()
|
|||||||
modelview = glm::identity<glm::mat4>();
|
modelview = glm::identity<glm::mat4>();
|
||||||
iTransform = glm::identity<glm::mat4>();
|
iTransform = glm::identity<glm::mat4>();
|
||||||
color = glm::vec4(1.f, 1.f, 1.f, 1.f);
|
color = glm::vec4(1.f, 1.f, 1.f, 1.f);
|
||||||
|
blending = BLEND_OPACITY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -347,27 +347,29 @@ list<string> SystemToolkit::list_directory(const string& path, const string& fil
|
|||||||
|
|
||||||
void SystemToolkit::open(const string& url)
|
void SystemToolkit::open(const string& url)
|
||||||
{
|
{
|
||||||
|
int ignored __attribute__((unused));
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
ShellExecuteA( nullptr, nullptr, url.c_str(), nullptr, nullptr, 0 );
|
ShellExecuteA( nullptr, nullptr, url.c_str(), nullptr, nullptr, 0 );
|
||||||
#elif defined APPLE
|
#elif defined APPLE
|
||||||
char buf[2048];
|
char buf[2048];
|
||||||
sprintf( buf, "open '%s'", url.c_str() );
|
sprintf( buf, "open '%s'", url.c_str() );
|
||||||
(void) system( buf );
|
ignored = system( buf );
|
||||||
#else
|
#else
|
||||||
char buf[2048];
|
char buf[2048];
|
||||||
sprintf( buf, "xdg-open '%s'", url.c_str() );
|
sprintf( buf, "xdg-open '%s'", url.c_str() );
|
||||||
(void) system( buf );
|
ignored = system( buf );
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void SystemToolkit::execute(const string& command)
|
void SystemToolkit::execute(const string& command)
|
||||||
{
|
{
|
||||||
|
int ignored __attribute__((unused));
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
ShellExecuteA( nullptr, nullptr, url.c_str(), nullptr, nullptr, 0 );
|
ShellExecuteA( nullptr, nullptr, url.c_str(), nullptr, nullptr, 0 );
|
||||||
#elif defined APPLE
|
#elif defined APPLE
|
||||||
(void) system( command.c_str() );
|
(void) system( command.c_str() );
|
||||||
#else
|
#else
|
||||||
(void) system( command.c_str() );
|
ignored = system( command.c_str() );
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
// example :
|
// example :
|
||||||
|
|||||||
Reference in New Issue
Block a user