mirror of https://github.com/WerWolv/ImHex
fix: Properly ignore return value of std::system
This commit is contained in:
parent
b602fcc485
commit
b3d07b4573
|
|
@ -861,7 +861,7 @@ namespace hex {
|
|||
errorMessageMacos(message.c_str());
|
||||
#elif defined(OS_LINUX)
|
||||
if (std::system(fmt::format(R"(zenity --error --text="{}")", message).c_str()) != 0) {
|
||||
std::system(fmt::format(R"(notify-send -i "net.werwolv.ImHex" "Error" "{}")", message).c_str());
|
||||
std::ignore = std::system(fmt::format(R"(notify-send -i "net.werwolv.ImHex" "Error" "{}")", message).c_str());
|
||||
}
|
||||
#elif defined(OS_WEB)
|
||||
EM_ASM({
|
||||
|
|
@ -906,7 +906,7 @@ namespace hex {
|
|||
toastMessageMacos(title.c_str(), message.c_str());
|
||||
#elif defined(OS_LINUX)
|
||||
if (std::system(fmt::format(R"(notify-send -i "net.werwolv.ImHex" "{}" "{}")", title, message).c_str()) != 0) {
|
||||
std::system(fmt::format(R"(zenity --info --title="{}" --text="{}")", title, message).c_str());
|
||||
std::ignore = std::system(fmt::format(R"(zenity --info --title="{}" --text="{}")", title, message).c_str());
|
||||
}
|
||||
#elif defined(OS_WEB)
|
||||
EM_ASM({
|
||||
|
|
|
|||
Loading…
Reference in New Issue