mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-31 19:08:30 +00:00
misc: Address compilation warnings and fix u_json_get_bool
This commit is contained in:
parent
cc4007a69e
commit
87a1198b0a
src/xrt
auxiliary/util
drivers/realsense
ipc/server
state_trackers/prober
|
@ -7,6 +7,8 @@
|
|||
* @ingroup aux_util
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ u_json_get_bool(const cJSON *json, bool *out_bool)
|
|||
return false;
|
||||
}
|
||||
|
||||
*out_bool = json->valueint;
|
||||
*out_bool = cJSON_IsTrue(json);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -78,6 +78,8 @@ rs_prober_destroy(struct xrt_auto_prober *p)
|
|||
/*!
|
||||
* @brief Explores a realsense device to see what SLAM capabilities it supports
|
||||
*
|
||||
* @param device_list List in which the device resides.
|
||||
* @param dev_idx Index of the device in @p device_list.
|
||||
* @param[out] out_hslam Whether it supports host-SLAM tracking (Has camera-imu streams)
|
||||
* @param[out] out_dslam Whether it supports device-SLAM tracking (T26x)
|
||||
*/
|
||||
|
|
|
@ -375,7 +375,7 @@ void *
|
|||
ipc_server_client_thread(void *_cs);
|
||||
|
||||
/*!
|
||||
* This destroyes the native compositor for this client and any extra objects
|
||||
* This destroys the native compositor for this client and any extra objects
|
||||
* created from it, like all of the swapchains.
|
||||
*/
|
||||
void
|
||||
|
|
|
@ -243,7 +243,7 @@ p_factory_ensure_frameserver(struct p_factory *fact)
|
|||
//! @todo Similar to p_factory_ensure_frameserver but for SLAM sources.
|
||||
//! Therefore we can only have one SLAM tracker at a time, with exactly one SLAM
|
||||
//! tracked device. It would be good to solve these artificial restrictions.
|
||||
static bool
|
||||
XRT_MAYBE_UNUSED static bool
|
||||
p_factory_ensure_slam_frameserver(struct p_factory *fact)
|
||||
{
|
||||
//! @todo The check for (XRT_HAVE_SLAM && XRT_BUILD_DRIVER_* &&
|
||||
|
|
Loading…
Reference in a new issue