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
Notes: sideshowbarker 2024-07-19 03:42:58 +09:00
2 changed files with 2 additions and 1 deletions

View file

@ -24,6 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <AK/Base64.h>
#include <AK/ByteBuffer.h>
#include <AK/String.h>
#include <AK/StringBuilder.h>

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;