intel / libxcam

libXCam is a project for extended camera(not limited in camera) features and focus on image quality improvement and video analysis. There are lots features supported in image pre-processing, image post-processing and smart analysis. This library makes GPU/CPU/ISP working together to improve image quality. OpenCL is used to improve performance in different platforms.
Other
589 stars 229 forks source link

Build failure with GCC 12, narrowing conversion from 'long unsigned int' to 'int' [-Wnarrowing] #801

Closed saininav closed 1 year ago

saininav commented 2 years ago

Error log: | In file included from /development/poky/build/tmp/work/corei7-64-poky-linux/libxcam/1.5.0-r0/recipe-sysroot/usr/include/asm/ioctl.h:1, | from/development/poky/build/tmp/work/corei7-64-poky-linux/libxcam/1.5.0-r0/recipe-sysroot/usr/include/linux/ioctl.h:5, | from /development/poky/build/tmp/work/corei7-64-poky-linux/libxcam/1.5.0-r0/recipe-sysroot/usr/include/linux/videodev2.h:62, | from ../../../git/wrapper/gstreamer/main_dev_manager.h:29, | from ../../../git/wrapper/gstreamer/gstxcamsrc.h:25, | from ../../../git/wrapper/gstreamer/gstxcamsrc.cpp:38: | ../../../git/xcore/fake_v4l2_device.h: In member function 'virtual int XCam::FakeV4l2Device::io_control(int, void*)': | ../../../git/xcore/fake_v4l2_device.h:42:14: error: narrowing conversion of '3225441794' from 'long unsigned int' to 'int' [-Wnarrowing] | 42 | case VIDIOC_ENUM_FMT: | | ^~~~~~~ | make[4]: [Makefile:685: libgstxcamsrc_la-gstxcamsrc.lo] Error 1 | make[4]: Waiting for unfinished jobs.... | make[4]: Leaving directory '/development/poky/build/tmp/work/corei7-64-poky-linux/libxcam/1.5.0-r0/build/wrapper/gstreamer'

To reproduce: GCC 12.1.0