Some compilers seem very picky about ignoring return values

This commit is contained in:
Tor Lillqvist 2015-04-10 12:51:42 +03:00
parent e6ddb042cd
commit 803ace146b

View file

@ -134,7 +134,11 @@ protected:
pngStream.write(png.data(), png.size());
pngStream.close();
#ifdef __linux
(void) std::system((std::string("display ") + pngFile.path()).c_str());
if (std::system((std::string("display ") + pngFile.path()).c_str()) == -1)
{
// Not worth it to display a warning, this is just a throwaway test program, and
// the developer running it surely notices if nothing shows up...
}
#endif
}
else