Fix compilation on GCC 8. Closes #984

This commit is contained in:
baldurk
2018-05-15 18:40:36 +01:00
parent 8c5e8081c5
commit d8a64c4172
6 changed files with 22 additions and 7 deletions
+1 -1
View File
@@ -1300,7 +1300,7 @@ int renderdoccmd(const GlobalEnvironment &env, std::vector<std::string> &argv)
clean_up();
return ret;
}
catch(std::exception e)
catch(std::exception &e)
{
fprintf(stderr, "Unexpected exception: %s\n", e.what());