Fixed warnings.
This commit is contained in:
@@ -37,7 +37,7 @@ void Controller::handleTransaction()
|
||||
else
|
||||
enableACTLED(false);
|
||||
}
|
||||
catch (runtime_error)
|
||||
catch (runtime_error& ignored)
|
||||
{}
|
||||
|
||||
auto msg = U2FMessage::readNonBlock();
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 {};
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user