[libcamera-devel] [PATCH v2 8/8] meson: Enable -Wextra-semi for clang
Hirokazu Honda
hiroh at chromium.org
Tue Oct 20 11:15:05 CEST 2020
The option, -Wextra-semi, helps developers to find unnecessary
semicolons. This option is available with clang.
Signed-off-by: Hirokazu Honda <hiroh at chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
meson.build | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meson.build b/meson.build
index de15cc1..b0c17d3 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'
--
2.29.0.rc1.297.gfa9743e501-goog
More information about the libcamera-devel
mailing list