From e098be8e885ae526d66cee3f27ba5c807bda56c6 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 8 Nov 2020 06:58:41 -0800 Subject: [PATCH] Fix warning filtering --- doc/build.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/doc/build.py b/doc/build.py index 840c3a0c..e0040173 100755 --- a/doc/build.py +++ b/doc/build.py @@ -88,15 +88,17 @@ def build_docs(version='dev', **kwargs): EXCLUDE_SYMBOLS = fmt::formatter fmt::printf_formatter fmt::arg_join \ fmt::basic_format_arg::handle '''.format(include_dir, doxyxml_dir).encode('UTF-8')) - noisy_warnings = [ - 'warning: Internal inconsistency: .* does not belong to any container!' - ] internal_symbols = [ 'fmt::detail::.*', 'basic_data<>', + 'fmt::type_identity', 'fmt::dynamic_formatter' ] - for w in noisy_warnings + ['(' + '|'.join(internal_symbols) + ')']: + noisy_warnings = [ + 'warning: Compound (' + '|'.join(internal_symbols) + ') is not documented.', + 'warning: Internal inconsistency: .* does not belong to any container!' + ] + for w in noisy_warnings: out = re.sub('.*' + w + '\n', '', out) print(out) if p.returncode != 0: