mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
seat/pointer: fix uninitialized variable warning
This results in the following warning, which in release mode causes an error due to -Werror: ../types/seat/wlr_seat_pointer.c: In function ‘wlr_seat_pointer_send_axis’: ../types/seat/wlr_seat_pointer.c:344:25: error: ‘low_res_value_discrete’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 343 | if (version < WL_POINTER_AXIS_VALUE120_SINCE_VERSION && | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 344 | value_discrete != 0 && low_res_value_discrete == 0) { | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors
This commit is contained in:
parent
7298c42139
commit
30bf8a4303
1 changed files with 1 additions and 1 deletions
|
@ -328,7 +328,7 @@ void wlr_seat_pointer_send_axis(struct wlr_seat *wlr_seat, uint32_t time,
|
||||||
}
|
}
|
||||||
|
|
||||||
double low_res_value;
|
double low_res_value;
|
||||||
int32_t low_res_value_discrete;
|
int32_t low_res_value_discrete = 0;
|
||||||
update_value120_accumulators(client, orientation, value, value_discrete,
|
update_value120_accumulators(client, orientation, value, value_discrete,
|
||||||
&low_res_value, &low_res_value_discrete);
|
&low_res_value, &low_res_value_discrete);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue