diff options
author | Hirokazu Honda <hiroh@chromium.org> | 2020-10-20 18:15:05 +0900 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-10-20 13:15:56 +0300 |
commit | c3a5467f7d91807ed8c6dbdee107638ceca15b1c (patch) | |
tree | 442a617a9e035f7295c2dafd72e2b679a90fd622 | |
parent | 766eae45321cecc0ac39dd3219826b111290575b (diff) |
meson: Enable -Wextra-semi for clang
The option, -Wextra-semi, helps developers to find unnecessary
semicolons. This option is available with clang.
Signed-off-by: Hirokazu Honda <hiroh@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r-- | meson.build | 4 |
1 files changed, 4 insertions, 0 deletions
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' |