[PATCH] v4l-utils: add missing fallthrough

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Found with -Wimplicit-fallthrough

Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
---
 utils/v4l2-ctl/v4l2-ctl-edid.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/utils/v4l2-ctl/v4l2-ctl-edid.cpp b/utils/v4l2-ctl/v4l2-ctl-edid.cpp
index 0d6625a34..dfaff3388 100644
--- a/utils/v4l2-ctl/v4l2-ctl-edid.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl-edid.cpp
@@ -4,6 +4,7 @@
 
 #include <linux/v4l2-subdev.h>
 
+#include "compiler.h"
 #include "v4l2-ctl.h"
 
 /*
@@ -1301,7 +1302,7 @@ void edid_cmd(int ch, char *optarg)
 					 sedid.pad = strtoul(value, nullptr, 0);
 					 break;
 				 }
-				 // fall through
+				 fallthrough;
 			default:
 				 edid_usage();
 				 std::exit(EXIT_FAILURE);
-- 
2.31.1




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux