mirror of
https://github.com/swaywm/sway.git
synced 2024-11-29 11:21:28 +00:00
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__) ^~~~~~~~~~~
This commit is contained in:
parent
4b892a79aa
commit
e0324fc88c
|
@ -621,7 +621,7 @@ bool spawn_swaybg(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (size_t k = 0; k < i; k++) {
|
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);
|
bool result = _spawn_swaybg(cmd);
|
||||||
|
|
Loading…
Reference in a new issue