commit e0324fc88c4a9041e8c97bdf99ee33eb198c1310
parent 4b892a79aae47ef2a7a4776e959eca612e0df08b
Author: Jan Beich <jbeich@FreeBSD.org>
Date: Mon, 8 Apr 2019 19:18:42 +0000
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:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sway/config/output.c b/sway/config/output.c
@@ -621,7 +621,7 @@ bool spawn_swaybg(void) {
}
for (size_t k = 0; k < i; k++) {
- sway_log(SWAY_DEBUG, "spawn_swaybg cmd[%ld] = %s", k, cmd[k]);
+ sway_log(SWAY_DEBUG, "spawn_swaybg cmd[%zd] = %s", k, cmd[k]);
}
bool result = _spawn_swaybg(cmd);