diff mbox series

v4l-utils: add missing fallthrough

Message ID 20210527043946.53108-1-rosenp@gmail.com
State New
Headers show
Series v4l-utils: add missing fallthrough | expand

Commit Message

Rosen Penev May 27, 2021, 4:39 a.m. UTC
Found with -Wimplicit-fallthrough

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

Patch

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