From ec7fbadcdb83e9dda31fd5cb6ad16c122b7ac4e3 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Mon, 6 Apr 2020 15:48:35 -0400 Subject: [PATCH] linux-v4l2: Fix build with Clang 10.0 add_control_property() was previously static inline bool, but did not return a value and failed to build on FreeBSD-CURRENT with Clang 10.0, with: error: non-void function 'add_control_property' should return a value --- plugins/linux-v4l2/v4l2-controls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/linux-v4l2/v4l2-controls.c b/plugins/linux-v4l2/v4l2-controls.c index 1ffdab8ad..703405026 100644 --- a/plugins/linux-v4l2/v4l2-controls.c +++ b/plugins/linux-v4l2/v4l2-controls.c @@ -95,7 +95,7 @@ static inline bool valid_control(struct v4l2_queryctrl *qctrl) return (qctrl->flags & INVALID_CONTROL_FLAGS) == 0; } -static inline bool add_control_property(obs_properties_t *props, +static inline void add_control_property(obs_properties_t *props, obs_data_t *settings, int_fast32_t dev, struct v4l2_queryctrl *qctrl) {