Similarly to commit 6572fc926037 ("doc: make sphinx comply with ..."),
pass -W to sphinx to catch warnings.Signed-off-by: David Marchand <[email protected]> --- doc/api/dts/meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/api/dts/meson.build b/doc/api/dts/meson.build index 8a6d061879..fc147f13f3 100644 --- a/doc/api/dts/meson.build +++ b/doc/api/dts/meson.build @@ -12,6 +12,9 @@ if python_ver_satisfied != 0 endif extra_sphinx_args = ['-E', '-c', join_paths(doc_source_dir, 'guides')] +if get_option('werror') + extra_sphinx_args += '-W' +endif # DTS docs are generated inside main Doxygen docs build directory # DTS docs relies on main docs to install it so does not define install dir -- 2.52.0

