meson: Add -Wall and -Wextra to header checks
This should ensure public headers are free from any warnings.
This commit is contained in:
@@ -83,6 +83,8 @@ foreach header : _systemd_headers + _not_installed_headers + [libudev_h_path]
|
||||
args : [cc.cmd_array(),
|
||||
'-c',
|
||||
'-x', opt,
|
||||
'-Wall',
|
||||
'-Wextra',
|
||||
'-Werror',
|
||||
'-include', meson.current_source_dir() / header,
|
||||
'-o/dev/null',
|
||||
|
||||
Reference in New Issue
Block a user