aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-01-27 21:50:40 -0500
committerJack Lloyd <[email protected]>2017-01-27 21:51:30 -0500
commit887be8a3178386309a2b7cf356bf2933d9cd1068 (patch)
treeafdb6af44654ffcc664cb8e64c6d4dd3548cf9d6 /src
parent81ab8b95a0371001a086d3c11b616e22575eebb5 (diff)
Add BOTAN_UNUSED in creator functions
If all (say) stream ciphers are disabled, avoid unused arg warning. [ci skip]
Diffstat (limited to 'src')
-rw-r--r--src/lib/block/block_cipher.cpp3
-rw-r--r--src/lib/kdf/kdf.cpp3
-rw-r--r--src/lib/mac/mac.cpp3
-rw-r--r--src/lib/pbkdf/pbkdf.cpp3
-rw-r--r--src/lib/stream/stream_cipher.cpp3
5 files changed, 15 insertions, 0 deletions
diff --git a/src/lib/block/block_cipher.cpp b/src/lib/block/block_cipher.cpp
index 750d01821..fa0ecad52 100644
--- a/src/lib/block/block_cipher.cpp
+++ b/src/lib/block/block_cipher.cpp
@@ -274,6 +274,9 @@ BlockCipher::create(const std::string& algo,
}
#endif
+ BOTAN_UNUSED(req);
+ BOTAN_UNUSED(provider);
+
return nullptr;
}
diff --git a/src/lib/kdf/kdf.cpp b/src/lib/kdf/kdf.cpp
index 2fba1868e..0e9d840c1 100644
--- a/src/lib/kdf/kdf.cpp
+++ b/src/lib/kdf/kdf.cpp
@@ -200,6 +200,9 @@ std::unique_ptr<KDF> KDF::create(const std::string& algo_spec,
}
#endif
+ BOTAN_UNUSED(req);
+ BOTAN_UNUSED(provider);
+
return nullptr;
}
diff --git a/src/lib/mac/mac.cpp b/src/lib/mac/mac.cpp
index 3dfe753b7..c48deb24b 100644
--- a/src/lib/mac/mac.cpp
+++ b/src/lib/mac/mac.cpp
@@ -121,6 +121,9 @@ MessageAuthenticationCode::create(const std::string& algo_spec,
}
#endif
+ BOTAN_UNUSED(req);
+ BOTAN_UNUSED(provider);
+
return nullptr;
}
diff --git a/src/lib/pbkdf/pbkdf.cpp b/src/lib/pbkdf/pbkdf.cpp
index d9479bd8d..8f72a9180 100644
--- a/src/lib/pbkdf/pbkdf.cpp
+++ b/src/lib/pbkdf/pbkdf.cpp
@@ -52,6 +52,9 @@ std::unique_ptr<PBKDF> PBKDF::create(const std::string& algo_spec,
}
#endif
+ BOTAN_UNUSED(req);
+ BOTAN_UNUSED(provider);
+
return nullptr;
}
diff --git a/src/lib/stream/stream_cipher.cpp b/src/lib/stream/stream_cipher.cpp
index dfe1fa69b..f33d68296 100644
--- a/src/lib/stream/stream_cipher.cpp
+++ b/src/lib/stream/stream_cipher.cpp
@@ -112,6 +112,9 @@ std::unique_ptr<StreamCipher> StreamCipher::create(const std::string& algo_spec,
#endif
+ BOTAN_UNUSED(req);
+ BOTAN_UNUSED(provider);
+
return nullptr;
}