summaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
authorLibravatar Jan Beich <jbeich@FreeBSD.org>2019-04-08 19:18:42 +0000
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-04-08 14:02:52 -0600
commite0324fc88c4a9041e8c97bdf99ee33eb198c1310 (patch)
tree8d85c6c0fde8b110cda93b957b8a590282606e86 /sway
parentAdd margin to short_text handling. (diff)
downloadsway-e0324fc88c4a9041e8c97bdf99ee33eb198c1310.tar.gz
sway-e0324fc88c4a9041e8c97bdf99ee33eb198c1310.tar.zst
sway-e0324fc88c4a9041e8c97bdf99ee33eb198c1310.zip
config/output: unbreak on 32-bit architectures
sway/config/output.c:624:54: error: format specifies type 'long' but the argument has type 'size_t' (aka 'unsigned int') [-Werror,-Wformat] sway_log(SWAY_DEBUG, "spawn_swaybg cmd[%ld] = %s", k, cmd[k]); ~~~ ^ %zu include/log.h:40:74: note: expanded from macro 'sway_log' _sway_log(verb, "[%s:%d] " fmt, _sway_strip_path(__FILE__), __LINE__, ##__VA_ARGS__) ^~~~~~~~~~~
Diffstat (limited to 'sway')
-rw-r--r--sway/config/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/config/output.c b/sway/config/output.c
index 0473d0ad..747ab28b 100644
--- a/sway/config/output.c
+++ b/sway/config/output.c
@@ -621,7 +621,7 @@ bool spawn_swaybg(void) {
621 } 621 }
622 622
623 for (size_t k = 0; k < i; k++) { 623 for (size_t k = 0; k < i; k++) {
624 sway_log(SWAY_DEBUG, "spawn_swaybg cmd[%ld] = %s", k, cmd[k]); 624 sway_log(SWAY_DEBUG, "spawn_swaybg cmd[%zd] = %s", k, cmd[k]);
625 } 625 }
626 626
627 bool result = _spawn_swaybg(cmd); 627 bool result = _spawn_swaybg(cmd);