Fixed warnings.

This commit is contained in:
2019-06-19 19:27:39 +01:00
parent 407d147356
commit 6f329f7f3d
4 changed files with 6 additions and 6 deletions

View File

@@ -37,7 +37,7 @@ void Controller::handleTransaction()
else
enableACTLED(false);
}
catch (runtime_error)
catch (runtime_error& ignored)
{}
auto msg = U2FMessage::readNonBlock();

View File

@@ -133,7 +133,7 @@ FILE* initHTML(FILE *fPtr, const string &title)
"\t\t<style>\n"
"\t\t\ttable {\n"
"\t\t\t\tdisplay: table;\n"
"\t\t\t\twidth: 100%;\n"
"\t\t\t\twidth: 100%%;\n"
"\t\t\t\tborder-collapse: collapse;\n"
"\t\t\t\tbox-sizing: border-box;\n"
"\t\t\t}\n"
@@ -151,7 +151,7 @@ FILE* initHTML(FILE *fPtr, const string &title)
"\t\t\t\toverflow: hidden;\n"
"\t\t\t\ttext-overflow: ellipsis;\n"
"\t\t\t\tmax-width:1px;\n"
"\t\t\t\twidth:100%;\n"
"\t\t\t\twidth:100%%;\n"
"\t\t\t}\n"
"\n"
"\t\t\ttd.data:hover {\n"

View File

@@ -40,7 +40,7 @@ shared_ptr<U2F_CMD> U2F_CMD::get(const shared_ptr<U2FMessage> uMsg)
return {};
}
}
catch (runtime_error)
catch (runtime_error& ignored)
{
return {};
}

View File

@@ -114,7 +114,7 @@ shared_ptr<U2F_Msg_CMD> U2F_Msg_CMD::generate(const shared_ptr<U2FMessage> uMsg)
{
cmd.le = getLe(data.end() - endPtr, vector<uint8_t>(endPtr, data.end()));
}
catch (runtime_error)
catch (runtime_error& ignored)
{
U2F_Msg_CMD::error(uMsg->cid, APDU_STATUS::SW_WRONG_LENGTH);
throw;
@@ -129,7 +129,7 @@ shared_ptr<U2F_Msg_CMD> U2F_Msg_CMD::generate(const shared_ptr<U2FMessage> uMsg)
{
cmd.le = getLe(cBCount, data);
}
catch (runtime_error)
catch (runtime_error& ignored)
{
U2F_Msg_CMD::error(uMsg->cid, APDU_STATUS::SW_WRONG_LENGTH);
throw;