Merge pull request #8854 from Chocobo1/gcc8

Fix compile warnings on gcc 8
This commit is contained in:
Mike Tzou
2018-05-08 11:57:49 +08:00
committed by GitHub

View File

@@ -2945,7 +2945,7 @@ void Session::setMaxConnectionsPerTorrent(int max)
try {
handle.set_max_connections(max);
}
catch (std::exception) {}
catch (const std::exception &) {}
}
}
}
@@ -2967,7 +2967,7 @@ void Session::setMaxUploadsPerTorrent(int max)
try {
handle.set_max_uploads(max);
}
catch (std::exception) {}
catch (const std::exception &) {}
}
}
}