error: moving a temporary object prevents copy elision

i am building rpicam apps from source on ubuntu 24.04. İ got this error:
(venv_hailo_rpi5_examples) pi@pi-desktop:~/rpicam-apps$ meson compile -C build
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/bin/ninja -C /home/pi/rpicam-apps/build
ninja: Entering directory `/home/pi/rpicam-apps/build’
[5/9] Compiling C++ object post_proces…o-postproc.so.p/hailo_classifier.cpp.o
FAILED: post_processing_stages/hailo/hailo-postproc.so.p/hailo_classifier.cpp.o
c++ -Ipost_processing_stages/hailo/hailo-postproc.so.p -Ipost_processing_stages/hailo -I…/post_processing_stages/hailo -I. -I… -I/usr/include -I/usr/include/hailo/tappas/ -I/usr/include/hailo/tappas/gsthailometa -I/usr/include/hailo/tappas/general -I/usr/include/hailo/tappas/plugins/common -I/usr/include/hailo/tappas/tracking -I/usr/include/hailo/tappas/sources/Catch2/include -I/usr/include/hailo/tappas/sources/cxxopts/include -I/usr/include/hailo/tappas/sources/pybind11/include -I/usr/include/hailo/tappas/sources/rapidjson/include -I/usr/include/hailo/tappas/sources/xtensor-blas/include -I/usr/include/hailo/tappas/sources/xtensor/include -I/usr/include/hailo/tappas/sources/xtl/include -I/usr/include/hailo/ -I/usr/include/gstreamer-1.0/gst/hailo/ -I/usr/include/opencv4 -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/aarch64-linux-gnu -I/usr/local/include/libcamera -fdiagnostics-color=always -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -std=c++17 -O3 -pedantic -Wno-unused-parameter -faligned-new -Wno-psabi -ftree-vectorize -DLIBAV_PRESENT=1 -DLIBDRM_PRESENT=1 -DLIBEGL_PRESENT=1 -DQT_PRESENT=1 -fPIC -fvisibility=default -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -Wpessimizing-move -Wredundant-move -fconcepts -fPIC -pthread -DHAILORT_MAJOR_VERSION=4 -DHAILORT_MINOR_VERSION=17 -DHAILORT_REVISION_VERSION=0 -Wno-ignored-qualifiers -Wno-unused-parameter -Wno-extra -MD -MQ post_processing_stages/hailo/hailo-postproc.so.p/hailo_classifier.cpp.o -MF post_processing_stages/hailo/hailo-postproc.so.p/hailo_classifier.cpp.o.d -o post_processing_stages/hailo/hailo-postproc.so.p/hailo_classifier.cpp.o -c …/post_processing_stages/hailo/hailo_classifier.cpp
In file included from /usr/include/hailo/tappas/classification/classification.hpp:7,
from …/post_processing_stages/hailo/hailo_classifier.cpp:17:
/usr/include/hailo/tappas/hailo_common.hpp: In function ‘void hailo_common::flatten_hailo_roi(HailoROIPtr, HailoROIPtr, hailo_object_t)’:
/usr/include/hailo/tappas/hailo_common.hpp:256:48: error: moving a temporary object prevents copy elision [-Werror=pessimizing-move]
256 | sub_obj_roi->set_bbox(std::move(create_flattened_bbox(sub_obj_roi->get_bbox(), roi->get_bbox())));
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~