aboutsummaryrefslogtreecommitdiffstats
path: root/checks/bench.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-06-12 14:47:25 +0000
committerlloyd <[email protected]>2008-06-12 14:47:25 +0000
commitb730ba19274f5422adb70df6d3328c46af35142f (patch)
tree4eb96b82b4489215587ee4b01ddafff9d9962f14 /checks/bench.cpp
parent1164b265ebecfb2132b07c9492e71881c69b2be4 (diff)
Fix some -Wmissing-declarations warnings
Diffstat (limited to 'checks/bench.cpp')
-rw-r--r--checks/bench.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/checks/bench.cpp b/checks/bench.cpp
index b9a50f4ab..6345b7e2b 100644
--- a/checks/bench.cpp
+++ b/checks/bench.cpp
@@ -11,6 +11,7 @@ using Botan::byte;
using Botan::u64bit;
#include "common.h"
+#include "bench.h"
/* Discard output to reduce overhead */
struct BitBucket : public Botan::Filter
@@ -22,6 +23,8 @@ Botan::Filter* lookup(const std::string&,
const std::vector<std::string>&,
const std::string& = "All");
+namespace {
+
double bench_filter(std::string name, Botan::Filter* filter,
bool html, double seconds)
{
@@ -89,6 +92,8 @@ double bench(const std::string& name, const std::string& filtername, bool html,
return 0;
}
+}
+
void benchmark(const std::string& what, bool html, double seconds)
{
try {