diff --git a/Applications/Debugger/main.cpp b/Applications/Debugger/main.cpp index dc198841c8..4829c52b0d 100644 --- a/Applications/Debugger/main.cpp +++ b/Applications/Debugger/main.cpp @@ -56,7 +56,7 @@ static void handle_sigint(int) g_debug_session = nullptr; } -void handle_print_registers(const PtraceRegisters& regs) +static void handle_print_registers(const PtraceRegisters& regs) { printf("eax: 0x%x\n", regs.eax); printf("ecx: 0x%x\n", regs.ecx); @@ -70,7 +70,7 @@ void handle_print_registers(const PtraceRegisters& regs) printf("eflags: 0x%x\n", regs.eflags); } -bool handle_disassemble_command(const String& command, void* first_instruction) +static bool handle_disassemble_command(const String& command, void* first_instruction) { (void)demangle("foo"); auto parts = command.split(' '); @@ -110,7 +110,7 @@ bool handle_disassemble_command(const String& command, void* first_instruction) return true; } -bool handle_breakpoint_command(const String& command) +static bool handle_breakpoint_command(const String& command) { auto parts = command.split(' '); if (parts.size() != 2) @@ -158,7 +158,7 @@ bool handle_breakpoint_command(const String& command) return true; } -void print_help() +static void print_help() { printf("Options:\n" "cont - Continue execution\n" diff --git a/Applications/Terminal/main.cpp b/Applications/Terminal/main.cpp index 8b1177f7b2..696e4e3cf9 100644 --- a/Applications/Terminal/main.cpp +++ b/Applications/Terminal/main.cpp @@ -134,7 +134,7 @@ static void run_command(int ptm_fd, String command) } } -RefPtr create_settings_window(TerminalWidget& terminal) +static RefPtr create_settings_window(TerminalWidget& terminal) { auto window = GUI::Window::construct(); window->set_title("Terminal Settings"); diff --git a/Applications/Welcome/main.cpp b/Applications/Welcome/main.cpp index c2122f1bae..fe0ed62fd1 100644 --- a/Applications/Welcome/main.cpp +++ b/Applications/Welcome/main.cpp @@ -53,7 +53,7 @@ struct ContentPage { Vector content; }; -Optional> parse_welcome_file(const String& path) +static Optional> parse_welcome_file(const String& path) { const auto error = Optional>(); auto file = Core::File::construct(path);