diff options
author | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-05-23 13:43:43 +0300 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2019-05-30 00:47:32 +0300 |
commit | 42f6ebd827832e62a37350ffad776ea785a2486b (patch) | |
tree | af1934af408469c43ee01aef4acf8810cce15348 /Documentation/sphinx | |
parent | b0d60bfbb60cef1efd699a65e29a94487f8c7b1f (diff) | |
download | linux-42f6ebd827832e62a37350ffad776ea785a2486b.tar.xz |
docs: cdomain.py: get rid of a warning since version 1.8
There's a new warning about a deprecation function. Add a
logic at cdomain.py to avoid that.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/sphinx')
-rw-r--r-- | Documentation/sphinx/cdomain.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Documentation/sphinx/cdomain.py b/Documentation/sphinx/cdomain.py index cf13ff3a656c..cbac8e608dc4 100644 --- a/Documentation/sphinx/cdomain.py +++ b/Documentation/sphinx/cdomain.py @@ -48,7 +48,10 @@ major, minor, patch = sphinx.version_info[:3] def setup(app): - app.override_domain(CDomain) + if (major == 1 and minor < 8): + app.override_domain(CDomain) + else: + app.add_domain(CDomain, override=True) return dict( version = __version__, |