aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2021-05-26 21:39:46 -0700
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2021-05-27 08:08:14 +0200
commit8b15be51f6087aeb8415d26d1e636337b2fa2284 (patch)
treece183db002bac5022db7736f72b54d6bff04b44a
parent72a981cc770b7d1327e872de4cdd6083f236e622 (diff)
v4l-utils: add missing fallthrough
Found with -Wimplicit-fallthrough Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--utils/v4l2-ctl/v4l2-ctl-edid.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/v4l2-ctl/v4l2-ctl-edid.cpp b/utils/v4l2-ctl/v4l2-ctl-edid.cpp
index 557f1d00..e803e41f 100644
--- a/utils/v4l2-ctl/v4l2-ctl-edid.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl-edid.cpp
@@ -3,6 +3,7 @@
#include <linux/v4l2-subdev.h>
+#include "compiler.h"
#include "v4l2-ctl.h"
/*
@@ -1300,7 +1301,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);

Privacy Policy