Skip to content

Commit

Permalink
Try to fix warning on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
loonycyborg committed Jun 3, 2016
1 parent 3cc654d commit d859dcc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/desktop/open.cpp
Expand Up @@ -79,9 +79,13 @@ bool open_object(const std::string& path_or_url)
}

if(child_status) {
//Those status check macros seem to trigger old style casts on some compiler versions
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wold-style-cast"
if(WIFEXITED(child_status)) {
ERR_DU << "open_object(): " << launcher << " returned "
<< WEXITSTATUS(child_status) << '\n';
#pragma GCC diagnostic pop
} else {
ERR_DU << "open_object(): " << launcher << " failed" << std::endl;
}
Expand Down

0 comments on commit d859dcc

Please sign in to comment.