[dpdk-dev] [PATCH v1] doc: remove warning with doxygen 1.9.7
jerinj at marvell.com
jerinj at marvell.com
Wed May 31 14:46:47 CEST 2023
From: Jerin Jacob <jerinj at marvell.com>
Since doxygen 1.9.7 version, HTML_TIMESTAMP configuration option
changed to TIMESTAMP [2]. Fixed the following warning[1] by providing
the correct configuration option based on doxygen version.
[1]
Warning: Tag 'HTML_TIMESTAMP' at line 115 of file 'doc/api/doxy-api.conf'
has become obsolete.
[2]
https://www.doxygen.nl/manual/config.html#cfg_timestamp
Cc: stable at dpdk.org
Signed-off-by: Jerin Jacob <jerinj at marvell.com>
---
doc/api/doxy-api.conf.in | 2 +-
doc/api/meson.build | 6 ++++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/doc/api/doxy-api.conf.in b/doc/api/doxy-api.conf.in
index 7e68e43c64..f5da1f2291 100644
--- a/doc/api/doxy-api.conf.in
+++ b/doc/api/doxy-api.conf.in
@@ -112,7 +112,7 @@ GENERATE_DEPRECATEDLIST = YES
VERBATIM_HEADERS = NO
ALPHABETICAL_INDEX = NO
-HTML_TIMESTAMP = NO
+ at TS_PREFIX@TIMESTAMP = NO
HTML_DYNAMIC_SECTIONS = YES
HTML_EXTRA_STYLESHEET = @TOPDIR@/doc/api/custom.css
SEARCHENGINE = YES
diff --git a/doc/api/meson.build b/doc/api/meson.build
index 2876a78a7e..7fc5b064cd 100644
--- a/doc/api/meson.build
+++ b/doc/api/meson.build
@@ -41,6 +41,12 @@ if get_option('werror')
cdata.set('WARN_AS_ERROR', 'YES')
endif
+if doxygen.version().version_compare('>=1.9.7')
+ cdata.set('TS_PREFIX', '')
+else
+ cdata.set('TS_PREFIX', 'HTML_')
+endif
+
doxy_conf = configure_file(input: 'doxy-api.conf.in',
output: 'doxy-api.conf',
configuration: cdata)
--
2.40.1
More information about the dev
mailing list