Message ID | 20200422003735.3891-2-rosenp@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [01/12] utils: fix compilation with C++98 | expand |
diff --git a/utils/cec-compliance/cec-compliance.cpp b/utils/cec-compliance/cec-compliance.cpp index 713e2a58..1c62b5c9 100644 --- a/utils/cec-compliance/cec-compliance.cpp +++ b/utils/cec-compliance/cec-compliance.cpp @@ -336,7 +336,7 @@ static std::string audio_format_code2s(__u8 format_code) return "Extended"; default: return "Illegal"; - }; + } } std::string extension_type_code2s(__u8 type_code) diff --git a/utils/cec-follower/cec-follower.cpp b/utils/cec-follower/cec-follower.cpp index 36bd2fbb..1eeae2d4 100644 --- a/utils/cec-follower/cec-follower.cpp +++ b/utils/cec-follower/cec-follower.cpp @@ -189,7 +189,7 @@ static std::string audio_format_code2s(__u8 format_code) return "Extended"; default: return "Illegal"; - }; + } } std::string extension_type_code2s(__u8 type_code) diff --git a/utils/v4l2-compliance/v4l2-test-buffers.cpp b/utils/v4l2-compliance/v4l2-test-buffers.cpp index 3b45711d..93df7034 100644 --- a/utils/v4l2-compliance/v4l2-test-buffers.cpp +++ b/utils/v4l2-compliance/v4l2-test-buffers.cpp @@ -1752,7 +1752,7 @@ static int setupDmaBuf(struct node *expbuf_node, struct node *node, fail_on_test(buf.qbuf(node, false)); for (unsigned p = 0; p < buf.g_num_planes(); p++) { - fail_on_test(buf.g_fd(p) != q.g_fd(i, p));; + fail_on_test(buf.g_fd(p) != q.g_fd(i, p)); fail_on_test(buf.g_length(p) != q.g_length(p)); if (v4l_type_is_output(q.g_type())) fail_on_test(!buf.g_bytesused(p));
Found with -Wextra-semi-stmt Signed-off-by: Rosen Penev <rosenp@gmail.com> --- utils/cec-compliance/cec-compliance.cpp | 2 +- utils/cec-follower/cec-follower.cpp | 2 +- utils/v4l2-compliance/v4l2-test-buffers.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)