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>
This commit is contained in:
committed by
Laurent Pinchart
parent
766eae4532
commit
c3a5467f7d
@@ -64,6 +64,10 @@ if cc.get_id() == 'clang'
|
||||
'-stdlib=libc++',
|
||||
]
|
||||
endif
|
||||
|
||||
cpp_arguments += [
|
||||
'-Wextra-semi',
|
||||
]
|
||||
endif
|
||||
|
||||
if cc.get_id() == 'gcc'
|
||||
|
||||
Reference in New Issue
Block a user