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:
Matti Lehtimäki 2023-01-04 18:15:01 +02:00 committed by Laurent Pinchart
parent e8ae254970
commit 504b643761
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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;