[PATCH kanshi] Fix compilation error due to unused variable when KANSHI_HAS_VARLINK isn't truthy
Export this patch
From: Luis Pabon <luis.pabon@auronconsulting.co.uk>
The error:
```
../main.c:623:13: error: variable ‘listen_fd’ set but not used [-Werror=unused-but-set-variable]
```
---
main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/main.c b/main.c
index 4dd2781..202b780 100644
--- a/main.c
+++ b/main.c
@@ -620,7 +620,9 @@ static const struct option long_options[] = {
int main(int argc, char *argv[]) {
const char *config_arg = NULL;
+#if KANSHI_HAS_VARLINK
int listen_fd = -1;
+#endif
int opt;
while ((opt = getopt_long(argc, argv, "hc:l:", long_options, NULL)) != -1) {
--
2.34.5
kanshi/patches/.build.yml: FAILED in 15s
[Fix compilation error due to unused variable when KANSHI_HAS_VARLINK isn't truthy][0] from [~luispabon][1]
[0]: https://lists.sr.ht/~emersion/public-inbox/patches/38683
[1]: mailto:copong@gmail.com
✗ #933621 FAILED kanshi/patches/.build.yml https://builds.sr.ht/~emersion/job/933621
Pushed, thanks for this fix!