Skip to content

Commit c96e2d7

Browse files
committed
Fix sphinx warnings
1 parent 154f891 commit c96e2d7

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

CHANGES

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ Released 2025-03-23
1010
Bruno Haible for the report and help with fixing.)
1111

1212
- Use David M. Gay's `dtoa()` algorithm to avoid misprinting issues of real
13-
numbers that are not exactly representable as a `double` (#680).
13+
numbers that are not exactly representable as a ``double`` (#680).
1414

15-
If this is not desirable, use `./configure --disable-dtoa` or `cmake
16-
-DUSE_DTOA=OFF .`
15+
If this is not desirable, use ``./configure --disable-dtoa`` or ``cmake
16+
-DUSE_DTOA=OFF``.
1717

1818
* Build:
1919

doc/apiref.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ in which case no error information is returned to the caller.
10881088

10891089
.. versionadded:: 2.11
10901090

1091-
.. function:: enum json_error_code json_error_code(const json_error_t *error)
1091+
.. c:function:: enum json_error_code json_error_code(const json_error_t *error)
10921092
10931093
Returns the error code embedded in ``error->text``.
10941094

doc/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@
7070
default_role = 'c:func'
7171
primary_domain = 'c'
7272

73+
# Suppress warnings about enum and function having the same name (valid in C)
74+
suppress_warnings = ['duplicate_declaration.c']
75+
7376
# If true, '()' will be appended to :func: etc. cross-reference text.
7477
#add_function_parentheses = True
7578

0 commit comments

Comments
 (0)