[libcamera-devel] [PATCH 8/8] meson: Enable -Wextra-semi for clang

Hirokazu Honda hiroh at chromium.org
Tue Oct 20 07:29:05 CEST 2020


The option, -Wxtra-semi, helps developers to find unnecessary
semicolons. This option is available with clang.

Signed-off-by: Hirokazu Honda <hiroh at chromium.org>
---
 meson.build | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meson.build b/meson.build
index de15cc1..480c861 100644
--- a/meson.build
+++ b/meson.build
@@ -64,6 +64,12 @@ if cc.get_id() == 'clang'
             '-stdlib=libc++',
         ]
     endif
+
+    if cc.has_argument('-Wextra-semi')
+       cpp_arguments += [
+           '-Wextra-semi',
+       ]
+    endif
 endif
 
 if cc.get_id() == 'gcc'
-- 
2.29.0.rc1.297.gfa9743e501-goog



More information about the libcamera-devel mailing list