1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:07:36 +00:00

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.
This commit is contained in:
Ben Wiederhake 2020-08-10 23:50:38 +02:00 committed by Andreas Kling
parent 0248ddc427
commit 5fe6ca75ca
2 changed files with 2 additions and 1 deletions

View file

@ -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;