fix: Properly ignore return value of std::system

This commit is contained in:
WerWolv 2025-08-18 20:38:15 +02:00
parent b602fcc485
commit b3d07b4573
1 changed files with 2 additions and 2 deletions

View File

@ -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({