fix compiler warnings (GCC + Clang)
This commit is contained in:
@@ -9,6 +9,9 @@
|
||||
|
||||
#include "stringutil.hpp"
|
||||
#include "typedefs.hpp"
|
||||
#include "debug/Logger.hpp"
|
||||
|
||||
static debug::Logger logger("platform");
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <Windows.h>
|
||||
@@ -103,6 +106,9 @@ void platform::open_folder(const std::filesystem::path& folder) {
|
||||
ShellExecuteW(NULL, L"open", folder.wstring().c_str(), NULL, NULL, SW_SHOWDEFAULT);
|
||||
#else
|
||||
auto cmd = "xdg-open " + util::quote(folder.u8string());
|
||||
system(cmd.c_str());
|
||||
if (int res = system(cmd.c_str())) {
|
||||
logger.warning() << "'" << cmd << "' returned code " << res;
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user