Some compilers seem very picky about ignoring return values
This commit is contained in:
parent
e6ddb042cd
commit
803ace146b
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue