From 2fa116691dcf00c90ce3c5ed9c32db67b5804c10 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 28 Aug 2026 13:01:06 +0900 Subject: internal/rosa/package/sway: remove unused code This is blowing up -Wunused-but-set-global in the upcoming toolchain update. Signed-off-by: Ophestra --- internal/rosa/package/sway.az | 31 ------------------------- internal/rosa/package/sway/package.az | 32 ++++++++++++++++++++++++++ internal/rosa/package/sway/remove-unused.patch | 20 ++++++++++++++++ 3 files changed, 52 insertions(+), 31 deletions(-) delete mode 100644 internal/rosa/package/sway.az create mode 100644 internal/rosa/package/sway/package.az create mode 100644 internal/rosa/package/sway/remove-unused.patch (limited to 'internal/rosa') diff --git a/internal/rosa/package/sway.az b/internal/rosa/package/sway.az deleted file mode 100644 index 8785ae13..00000000 --- a/internal/rosa/package/sway.az +++ /dev/null @@ -1,31 +0,0 @@ -package sway { - description = "i3-compatible Wayland compositor"; - website = "https://swaywm.org"; - anitya = 11497; - - version# = "1.12"; - source = remoteGitHub { - suffix = "swaywm/sway"; - tag = version; - checksum = "g3WLHgFJBsl8u1sSmkjDIJY9KlIWe-e2JXthxMcLM9z0kYmWPJCAzJ_mb20ODMaD"; - }; - - exec = meson {}; - - inputs = [ - json-c, - pcre2, - pango, - libinput, - wlroots, - kernel-headers, - ]; - - runtime = [ - json-c, - pcre2, - pango, - libinput, - wlroots, - ]; -} diff --git a/internal/rosa/package/sway/package.az b/internal/rosa/package/sway/package.az new file mode 100644 index 00000000..6ff1b365 --- /dev/null +++ b/internal/rosa/package/sway/package.az @@ -0,0 +1,32 @@ +package sway { + description = "i3-compatible Wayland compositor"; + website = "https://swaywm.org"; + anitya = 11497; + + version# = "1.12"; + source = remoteGitHub { + suffix = "swaywm/sway"; + tag = version; + checksum = "g3WLHgFJBsl8u1sSmkjDIJY9KlIWe-e2JXthxMcLM9z0kYmWPJCAzJ_mb20ODMaD"; + }; + patches = [ "remove-unused.patch" ]; + + exec = meson {}; + + inputs = [ + json-c, + pcre2, + pango, + libinput, + wlroots, + kernel-headers, + ]; + + runtime = [ + json-c, + pcre2, + pango, + libinput, + wlroots, + ]; +} diff --git a/internal/rosa/package/sway/remove-unused.patch b/internal/rosa/package/sway/remove-unused.patch new file mode 100644 index 00000000..0de52645 --- /dev/null +++ b/internal/rosa/package/sway/remove-unused.patch @@ -0,0 +1,20 @@ +diff --git a/sway/main.c b/sway/main.c +index a9438926..6618348e 100644 +--- a/sway/main.c ++++ b/sway/main.c +@@ -26,7 +26,6 @@ + #include "stringop.h" + #include "util.h" + +-static bool terminate_request = false; + static int exit_value = 0; + static struct rlimit original_nofile_rlimit = {0}; + struct sway_server server = {0}; +@@ -38,7 +37,6 @@ void sway_terminate(int exit_code) { + exit(exit_code); + } else { + // Running as server +- terminate_request = true; + exit_value = exit_code; + ipc_event_shutdown("exit"); + wl_display_terminate(server.wl_display); -- cgit v1.3.1