summaryrefslogtreecommitdiff
path: root/AK/Tests
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2020-08-10 23:50:38 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-12 20:40:59 +0200
commit5fe6ca75caded2626be587e033527761b8cfc0be (patch)
tree5fe52ed9a52d1437b3087f1d9a2dc5013e700333 /AK/Tests
parent0248ddc427c3e100226c733b9209c902312cdf73 (diff)
downloadserenity-5fe6ca75caded2626be587e033527761b8cfc0be.zip
AK: Mark compilation-unit-only functions as static
This enables a nice warning in case a function becomes dead code. Also, add forgotten header to Base64.cpp, which would cause an issue later when we enable -Wmissing-declarations.
Diffstat (limited to 'AK/Tests')
-rw-r--r--AK/Tests/TestMemoryStream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/Tests/TestMemoryStream.cpp b/AK/Tests/TestMemoryStream.cpp
index 2234ae5078..dce3963e2c 100644
--- a/AK/Tests/TestMemoryStream.cpp
+++ b/AK/Tests/TestMemoryStream.cpp
@@ -28,7 +28,7 @@
#include <AK/Stream.h>
-bool compare(ReadonlyBytes lhs, ReadonlyBytes rhs)
+static bool compare(ReadonlyBytes lhs, ReadonlyBytes rhs)
{
if (lhs.size() != rhs.size())
return false;