mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
d/survive: Fix compilation on clang
Fixes error /home/haagch-collabora/monado/src/xrt/drivers/survive/survive_driver.c:384:53: error: passing 'const union xrt_output_value *' to parameter of type 'union xrt_output_value *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] int ret = survive_controller_haptic_pulse(survive, value); ^~~~~ /home/haagch-collabora/monado/src/xrt/drivers/survive/survive_driver.c:340:89: note: passing argument to parameter 'value' here survive_controller_haptic_pulse(struct survive_device *survive, union xrt_output_value *value)
This commit is contained in:
parent
997f4451b8
commit
ffb0346ba4
|
@ -337,7 +337,7 @@ survive_device_get_tracked_pose(struct xrt_device *xdev,
|
|||
}
|
||||
|
||||
static int
|
||||
survive_controller_haptic_pulse(struct survive_device *survive, union xrt_output_value *value)
|
||||
survive_controller_haptic_pulse(struct survive_device *survive, const union xrt_output_value *value)
|
||||
{
|
||||
float duration_seconds;
|
||||
if (value->vibration.duration_ns == XRT_MIN_HAPTIC_DURATION) {
|
||||
|
|
Loading…
Reference in a new issue