mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 23:39:44 +03:00
libcamera: Use C++17 [[fallthrough]] everywhere
Fixes build failure on some build environments. Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
e8ae254970
commit
504b643761
2 changed files with 2 additions and 2 deletions
|
@ -154,7 +154,7 @@ colorspace_from_colorimetry(const GstVideoColorimetry &colorimetry)
|
|||
case GST_VIDEO_TRANSFER_GAMMA22:
|
||||
case GST_VIDEO_TRANSFER_GAMMA28:
|
||||
GST_WARNING("GAMMA 18, 20, 22, 28 transfer functions not supported");
|
||||
/* fallthrough */
|
||||
[[fallthrough]];
|
||||
case GST_VIDEO_TRANSFER_GAMMA10:
|
||||
colorspace->transferFunction = ColorSpace::TransferFunction::Linear;
|
||||
break;
|
||||
|
|
|
@ -427,7 +427,7 @@ int CameraSensor::initProperties()
|
|||
LOG(CameraSensor, Warning)
|
||||
<< "Unsupported camera location "
|
||||
<< v4l2Orientation << ", setting to External";
|
||||
/* Fall-through */
|
||||
[[fallthrough]];
|
||||
case V4L2_CAMERA_ORIENTATION_EXTERNAL:
|
||||
propertyValue = properties::CameraLocationExternal;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue