meson: Add -Wall and -Wextra to header checks

This should ensure public headers are free from any warnings.
This commit is contained in:
Jan Janssen 2022-05-02 11:26:43 +02:00
parent 14056a52c6
commit ee8052c137

View File

@ -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',