summaryrefslogtreecommitdiff
path: root/src/gstreamer/gstlibcamera-utils.cpp
diff options
context:
space:
mode:
authorMatti Lehtimäki <matti.lehtimaki@gmail.com>2023-01-04 18:15:01 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2023-01-05 12:08:34 +0200
commit504b6437613f35de043485bd064843d6af269c74 (patch)
tree051c33826fd07c8adb5be72b64b869a9c3aea1c2 /src/gstreamer/gstlibcamera-utils.cpp
parente8ae254970cfdeb1b5aba307a95a3189b09c9784 (diff)
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>
Diffstat (limited to 'src/gstreamer/gstlibcamera-utils.cpp')
-rw-r--r--src/gstreamer/gstlibcamera-utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gstreamer/gstlibcamera-utils.cpp b/src/gstreamer/gstlibcamera-utils.cpp
index 16aac441..750ec351 100644
--- a/src/gstreamer/gstlibcamera-utils.cpp
+++ b/src/gstreamer/gstlibcamera-utils.cpp
@@ -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;