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_GAMMA22:
|
||||||
case GST_VIDEO_TRANSFER_GAMMA28:
|
case GST_VIDEO_TRANSFER_GAMMA28:
|
||||||
GST_WARNING("GAMMA 18, 20, 22, 28 transfer functions not supported");
|
GST_WARNING("GAMMA 18, 20, 22, 28 transfer functions not supported");
|
||||||
/* fallthrough */
|
[[fallthrough]];
|
||||||
case GST_VIDEO_TRANSFER_GAMMA10:
|
case GST_VIDEO_TRANSFER_GAMMA10:
|
||||||
colorspace->transferFunction = ColorSpace::TransferFunction::Linear;
|
colorspace->transferFunction = ColorSpace::TransferFunction::Linear;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -427,7 +427,7 @@ int CameraSensor::initProperties()
|
||||||
LOG(CameraSensor, Warning)
|
LOG(CameraSensor, Warning)
|
||||||
<< "Unsupported camera location "
|
<< "Unsupported camera location "
|
||||||
<< v4l2Orientation << ", setting to External";
|
<< v4l2Orientation << ", setting to External";
|
||||||
/* Fall-through */
|
[[fallthrough]];
|
||||||
case V4L2_CAMERA_ORIENTATION_EXTERNAL:
|
case V4L2_CAMERA_ORIENTATION_EXTERNAL:
|
||||||
propertyValue = properties::CameraLocationExternal;
|
propertyValue = properties::CameraLocationExternal;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue