aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2019-11-03 09:38:02 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2019-11-03 09:38:02 +0200
commit30b42a9617f5047cbaee13860b3f8b6ddf14a968 (patch)
tree89d40b7a00114c7ba6e64b9e019a74caebbd2a58 /src
parentMake gtest optional dependency and remove -Dtesting (diff)
downloadsmolbote-30b42a9617f5047cbaee13860b3f8b6ddf14a968.tar.xz
Fix gcc compile errors and warnings
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index c6f4120..28887b9 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -83,12 +83,13 @@ int main(int argc, char **argv)
if(cmd_build)
return builtins::build();
- } catch(args::Help) {
+ } catch(args::Help &e) {
std::cout << parser;
+ Q_UNUSED(e);
//std::cout << "Available subcommands: " << command_keys << std::endl;
return 0;
- } catch(args::Error e) {
+ } catch(args::Error &e) {
std::cerr << e.what() << std::endl;
std::cerr << parser;
return -1;