From c3a5467f7d91807ed8c6dbdee107638ceca15b1c Mon Sep 17 00:00:00 2001 From: Hirokazu Honda Date: Tue, 20 Oct 2020 18:15:05 +0900 Subject: meson: Enable -Wextra-semi for clang MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The option, -Wextra-semi, helps developers to find unnecessary semicolons. This option is available with clang. Signed-off-by: Hirokazu Honda Reviewed-by: Laurent Pinchart Reviewed-by: Niklas Söderlund Reviewed-by: Kieran Bingham Signed-off-by: Laurent Pinchart --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meson.build b/meson.build index de15cc16..b0c17d3e 100644 --- a/meson.build +++ b/meson.build @@ -64,6 +64,10 @@ if cc.get_id() == 'clang' '-stdlib=libc++', ] endif + + cpp_arguments += [ + '-Wextra-semi', + ] endif if cc.get_id() == 'gcc' -- cgit v1.2.1