diff options
author | Quantum <quantum2048@gmail.com> | 2022-07-28 02:25:31 -0400 |
---|---|---|
committer | Quantum <quantum2048@gmail.com> | 2022-07-28 02:25:31 -0400 |
commit | 30bf8a4303bc5df3cb87b7e6555592dbf8d95cf1 (patch) | |
tree | dc81a0f55491599b3ebbe3d8de7a6b869a214f57 /include/render/vulkan.h | |
parent | 7298c42139f9f8c5538dd0ba837699d63609839e (diff) |
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
Diffstat (limited to 'include/render/vulkan.h')
0 files changed, 0 insertions, 0 deletions