aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-01-17 19:02:13 -0500
committerJack Lloyd <[email protected]>2016-01-17 19:10:33 -0500
commit6fcbd57915d7870c2782bd6e098903353e8756b0 (patch)
treec40505fbf8021819dc15d8a632a2d6fb5557f2aa /src/cli
parentde22a9eda8bfb087b690feb962fae8313ee526d4 (diff)
Add missing overrides and fix -Wpedantic 'extra ;' warnings
Remove -Wsuggest-attribute=noreturn from maintainer mode flags as it seems like outside of the assertion failure macro any other suggestion would always be a false positive (an unimplemented function or the like). Or at least, if such a function needing noreturn to assist with static analysis is added in the future it will be obvious, by virtue of the static analyzer warnings which occur due to the missing noreturn preventing the analyzer from understanding code flow.
Diffstat (limited to 'src/cli')
-rw-r--r--src/cli/asn1.cpp2
-rw-r--r--src/cli/cc_enc.cpp2
-rw-r--r--src/cli/utils.cpp4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/cli/asn1.cpp b/src/cli/asn1.cpp
index 34e2fe870..592f363b4 100644
--- a/src/cli/asn1.cpp
+++ b/src/cli/asn1.cpp
@@ -361,7 +361,7 @@ class ASN1_Printer final : public Command
public:
ASN1_Printer() : Command("asn1print file") {}
- void go()
+ void go() override
{
Botan::DataSource_Stream in(get_arg("file"));
diff --git a/src/cli/cc_enc.cpp b/src/cli/cc_enc.cpp
index 6f19e546c..9a3256417 100644
--- a/src/cli/cc_enc.cpp
+++ b/src/cli/cc_enc.cpp
@@ -109,7 +109,7 @@ class CC_Encrypt final : public Command
public:
CC_Encrypt() : Command("cc_encrypt CC passphrase --tweak=") {}
- void go()
+ void go() override
{
const uint64_t cc_number = std::stoull(get_arg("CC"));
const std::vector<uint8_t> tweak = Botan::hex_decode(get_arg("tweak"));
diff --git a/src/cli/utils.cpp b/src/cli/utils.cpp
index 3f59ee923..199a7894f 100644
--- a/src/cli/utils.cpp
+++ b/src/cli/utils.cpp
@@ -237,7 +237,7 @@ class Generate_Bcrypt final : public Command
public:
Generate_Bcrypt() : Command("gen_bcrypt --work-factor=12 password") {}
- void go()
+ void go() override
{
const std::string password = get_arg("password");
const size_t wf = get_arg_sz("work_factor");
@@ -253,7 +253,7 @@ class Check_Bcrypt final : public Command
public:
Check_Bcrypt() : Command("check_bcrypt password hash") {}
- void go()
+ void go() override
{
const std::string password = get_arg("password");
const std::string hash = get_arg("hash");