diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-08-28 13:01:06 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-08-28 13:01:06 +0900 |
| commit | 2fa116691dcf00c90ce3c5ed9c32db67b5804c10 (patch) | |
| tree | 6912f1549677fc4fb91d5d12838a6d19487c9c22 /internal/rosa/package/sway | |
| parent | 96f5ef21f9092b8d60c6cf89ba356a9b6a395b9e (diff) | |
internal/rosa/package/sway: remove unused code
This is blowing up -Wunused-but-set-global in the upcoming toolchain update.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/package/sway')
| -rw-r--r-- | internal/rosa/package/sway/package.az | 32 | ||||
| -rw-r--r-- | internal/rosa/package/sway/remove-unused.patch | 20 |
2 files changed, 52 insertions, 0 deletions
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); |
