From d063dc1e71cde8eefaec478cdebcbe6da315d2ff Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Fri, 28 Aug 2020 10:21:05 +0200 Subject: [PATCH] HackStudio: Mark compilation-unit-only functions as static --- DevTools/HackStudio/main.cpp | 6 +++--- Userland/test-compress.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DevTools/HackStudio/main.cpp b/DevTools/HackStudio/main.cpp index d250f04d460..0dec21e544a 100644 --- a/DevTools/HackStudio/main.cpp +++ b/DevTools/HackStudio/main.cpp @@ -133,7 +133,7 @@ void open_project(String); void open_file(const String&); bool make_is_available(); -EditorWrapper& current_editor_wrapper() +static EditorWrapper& current_editor_wrapper() { ASSERT(g_current_editor_wrapper); return *g_current_editor_wrapper; @@ -156,7 +156,7 @@ static String get_full_path_of_serenity_source(const String& file) return String::format("%s/%s", serenity_sources_base.string().characters(), relative_path_builder.to_string().characters()); } -NonnullRefPtr get_editor_of_file(const String& file) +static NonnullRefPtr get_editor_of_file(const String& file) { String file_path = file; @@ -177,7 +177,7 @@ static String get_project_executable_path() return g_project->path().substring(0, g_project->path().index_of(".").value()); } -int main_impl(int argc, char** argv) +static int main_impl(int argc, char** argv) { if (pledge("stdio tty accept rpath cpath wpath shared_buffer proc exec unix fattr thread", nullptr) < 0) { perror("pledge"); diff --git a/Userland/test-compress.cpp b/Userland/test-compress.cpp index 95890149a2f..87473970c61 100644 --- a/Userland/test-compress.cpp +++ b/Userland/test-compress.cpp @@ -29,7 +29,7 @@ #include #include -bool compare(ReadonlyBytes lhs, ReadonlyBytes rhs) +static bool compare(ReadonlyBytes lhs, ReadonlyBytes rhs) { if (lhs.size() != rhs.size()) return false;