From f4ccce58c1a33cb41e1e820da504698437987efc Mon Sep 17 00:00:00 2001 From: Luca Vizzarro Date: Wed, 20 Nov 2024 14:41:01 +0000 Subject: [PATCH] doc: allow warnings in Sphinx for DTS Sphinx-autodoc issues warnings about some symbols due to bad autodoc "automock"ing when optional dependencies are missing: Warning, treated as error: Failed to get a method signature for framework.config.TestSuiteConfig.convert_from_string: )> is not a callable object The current meson setup allows to treat warnings as errors, halting the process and exiting early. Given these warnings should be ignored, this patch removes this behavior. Until optional dependencies are detected, warnings for DTS API docs will be checked manually as part of the DTS approval process. Fixes: 6597fa4a30ad ("dts: add autodoc Pydantic") Signed-off-by: Luca Vizzarro --- doc/api/dts/meson.build | 3 --- 1 file changed, 3 deletions(-) diff --git a/doc/api/dts/meson.build b/doc/api/dts/meson.build index fc147f13f3..8a6d061879 100644 --- a/doc/api/dts/meson.build +++ b/doc/api/dts/meson.build @@ -12,9 +12,6 @@ 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