From 3ec7b8b33c1ebd6d7d94c69c023e75dca68a9690 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Tue, 11 Aug 2020 00:03:04 +0200 Subject: [PATCH] Services: Mark compilation-unit-only functions as static This enables a nice warning in case a function becomes dead code. --- Services/NotificationServer/NotificationWindow.cpp | 4 ++-- Services/WindowServer/Compositor.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Services/NotificationServer/NotificationWindow.cpp b/Services/NotificationServer/NotificationWindow.cpp index 974d6b61c1..f4e54bb7de 100644 --- a/Services/NotificationServer/NotificationWindow.cpp +++ b/Services/NotificationServer/NotificationWindow.cpp @@ -29,8 +29,8 @@ #include #include #include -#include #include +#include #include #include #include @@ -40,7 +40,7 @@ namespace NotificationServer { static Vector> s_windows; -void update_notification_window_locations() +static void update_notification_window_locations() { Gfx::IntRect last_window_rect; for (auto& window : s_windows) { diff --git a/Services/WindowServer/Compositor.cpp b/Services/WindowServer/Compositor.cpp index e69c50bac3..7041007c26 100644 --- a/Services/WindowServer/Compositor.cpp +++ b/Services/WindowServer/Compositor.cpp @@ -45,7 +45,7 @@ Compositor& Compositor::the() return s_the; } -WallpaperMode mode_to_enum(const String& name) +static WallpaperMode mode_to_enum(const String& name) { if (name == "simple") return WallpaperMode::Simple;