Skip to contentSkip to conversation

v4l-utils: add missing fallthrough

PATCH New Rosen Penev 1 participant 1 message May 27, 2021 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 v4l-utils: add missing fallthrough

Found with -Wimplicit-fallthrough

---
 utils/v4l2-ctl/v4l2-ctl-edid.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
utils/v4l2-ctl/v4l2-ctl-edid.cpp +2 -1
index 0d6625a34..dfaff3388 100644
@@ -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);
Signature · 1 line
2.31.1