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:
parent
766eae4532
commit
c3a5467f7d
1 changed files with 4 additions and 0 deletions
|
@ -64,6 +64,10 @@ if cc.get_id() == 'clang'
|
|||
'-stdlib=libc++',
|
||||
]
|
||||
endif
|
||||
|
||||
cpp_arguments += [
|
||||
'-Wextra-semi',
|
||||
]
|
||||
endif
|
||||
|
||||
if cc.get_id() == 'gcc'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue