mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-19 19:25:41 +02:00
bar/wayland: Add unused attribute to count
This variable is only used in LOG_DBG which expands to nothing by default. Adding the unused attribute prevents the compiler from throwing an error (-Wunused-but-set-variable) when building.
This commit is contained in:
parent
b486088f77
commit
5a515eae99
1 changed files with 1 additions and 1 deletions
|
@ -1223,7 +1223,7 @@ loop(struct bar *_bar, void (*expose)(const struct bar *bar),
|
||||||
bool do_expose = false;
|
bool do_expose = false;
|
||||||
|
|
||||||
/* Coalesce “refresh” commands */
|
/* Coalesce “refresh” commands */
|
||||||
size_t count = 0;
|
__attribute__((unused)) size_t count = 0;
|
||||||
while (true) {
|
while (true) {
|
||||||
uint8_t command;
|
uint8_t command;
|
||||||
ssize_t r = read(backend->pipe_fds[0], &command, sizeof(command));
|
ssize_t r = read(backend->pipe_fds[0], &command, sizeof(command));
|
||||||
|
|
Loading…
Add table
Reference in a new issue