This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit a6b3e6128fff8c5231f46cefb508f46b61342847 Author: raiden00pl <[email protected]> AuthorDate: Sun Nov 22 11:29:57 2026 +0100 drivers/sensors/lsm6ds3trc: fix the build without the FIFO. lsm6ds3trc_activate() declares 'other' for the FIFO rate check only, so builds without CONFIG_SENSORS_LSM6DS3TRC_FIFO failed with -Werror. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: raiden00pl <[email protected]> --- drivers/sensors/lsm6ds3trc_uorb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/sensors/lsm6ds3trc_uorb.c b/drivers/sensors/lsm6ds3trc_uorb.c index c4c0f6c90ac..42808c7abe3 100644 --- a/drivers/sensors/lsm6ds3trc_uorb.c +++ b/drivers/sensors/lsm6ds3trc_uorb.c @@ -1182,8 +1182,10 @@ static int lsm6ds3trc_activate(FAR struct sensor_lowerhalf_s *lower, if (enable && !sens->enabled) { +#ifdef CONFIG_SENSORS_LSM6DS3TRC_FIFO FAR struct lsm6ds3trc_sens_s *other = is_gyro ? &dev->accel : &dev->gyro; +#endif enum lsm6ds3trc_odr_e odr; start_thread = true;
