monado/src/xrt/drivers
Antonio Ospite a4167ee500 d/ns: silence -Wunused-result warning, close config_file in error paths
On some systems fread() is declared with  attribute warn_unused_result
and this results in a build warning:

-----------------------------------------------------------------------
Building C object src/xrt/drivers/CMakeFiles/drv_ns.dir/north_star/ns_hmd.c.o
.../src/xrt/drivers/north_star/ns_hmd.c: In function ‘ns_config_load’:
.../src/xrt/drivers/north_star/ns_hmd.c:512:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
  512 |  fread(json, 1, file_size, config_file);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----------------------------------------------------------------------

Explicitly ignore the return value of that fread() to silence the
warning.

And while at it also close config_file in some error paths between
fopen() and fclose() which where leaking the file pointer when jumping
to the parse_error label.
2022-03-09 16:10:43 +01:00
..
android xrt: Remove xrt_device::get_view_pose 2022-02-16 23:15:24 +00:00
arduino xrt: Tidy s/ll/log_level/g 2021-11-22 14:29:10 -06:00
daydream xrt: Tidy s/ll/log_level/g 2021-11-22 14:29:10 -06:00
depthai d/dai: Add OV7251 sensor info 2022-03-04 14:04:13 +00:00
dummy aux/util: Move fov from u_device_simple_info::views to top level 2022-02-19 13:04:32 +00:00
euroc d/euroc: Fix euroc player skip functionality 2022-02-22 22:56:07 +00:00
hdk xrt: Move fov from xrt_view to xrt_hmd_parts::distortion 2022-02-19 13:04:32 +00:00
ht t/hand: Add ht_sync 2022-03-08 20:44:25 +00:00
ht_ctrl_emu d/ht_crtl_emu: Free driver 2022-03-08 13:52:23 -06:00
hydra xrt: Tidy s/ll/log_level/g 2021-11-22 14:29:10 -06:00
illixr Update illixr_device.cpp: There is no function called get_view_pose in xrt_device.h. 2022-02-23 17:13:38 +00:00
multi_wrapper d/multi: Change license to BSL, as originally intended 2022-02-19 00:55:54 +00:00
north_star d/ns: silence -Wunused-result warning, close config_file in error paths 2022-03-09 16:10:43 +01:00
ohmd xrt: Move fov from xrt_view to xrt_hmd_parts::distortion 2022-02-19 13:04:32 +00:00
psmv xrt: Rename xrt_space_graph to xrt_relation_chain. 2022-01-21 19:54:30 +00:00
psvr aux/util: Move fov from u_device_simple_info::views to top level 2022-02-19 13:04:32 +00:00
qwerty aux/util: Move fov from u_device_simple_info::views to top level 2022-02-19 13:04:32 +00:00
realsense xrt: Remove xrt_device::get_view_pose 2022-02-16 23:15:24 +00:00
remote aux/util: Move fov from u_device_simple_info::views to top level 2022-02-19 13:04:32 +00:00
sample xrt: Move fov from xrt_view to xrt_hmd_parts::distortion 2022-02-19 13:04:32 +00:00
survive xrt: Move fov from xrt_view to xrt_hmd_parts::distortion 2022-02-19 13:04:32 +00:00
ultraleap_v2 xrt: Tidy s/ll/log_level/g 2021-11-22 14:29:10 -06:00
v4l2 xrt: Tidy s/ll/log_level/g 2021-11-22 14:29:10 -06:00
vf xrt: Tidy s/ll/log_level/g 2021-11-22 14:29:10 -06:00
vive xrt: Move fov from xrt_view to xrt_hmd_parts::distortion 2022-02-19 13:04:32 +00:00
wmr d/wmr: Reverb G1: Avoid camera buffer related hangs 2022-02-20 14:57:36 +00:00
CMakeLists.txt t/hand: Add ht_sync 2022-03-08 20:44:25 +00:00
meson.build t/hand: Add ht_sync 2022-03-08 20:44:25 +00:00