From 6f329f7f3d24c31a6cbf11a8716f34aa57389cc5 Mon Sep 17 00:00:00 2001 From: Michael Kuc Date: Wed, 19 Jun 2019 19:27:39 +0100 Subject: [PATCH] Fixed warnings. --- Controller.cpp | 2 +- Streams.cpp | 4 ++-- U2F_CMD.cpp | 2 +- U2F_Msg_CMD.cpp | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Controller.cpp b/Controller.cpp index d3c9205..0ce82f7 100644 --- a/Controller.cpp +++ b/Controller.cpp @@ -37,7 +37,7 @@ void Controller::handleTransaction() else enableACTLED(false); } - catch (runtime_error) + catch (runtime_error& ignored) {} auto msg = U2FMessage::readNonBlock(); diff --git a/Streams.cpp b/Streams.cpp index df2307d..32c8c7f 100644 --- a/Streams.cpp +++ b/Streams.cpp @@ -133,7 +133,7 @@ FILE* initHTML(FILE *fPtr, const string &title) "\t\t