Fix error parameter annotations
Review Request #2019 — Created Nov. 4, 2022 and submitted
The
(optional)
annotation causes a warning because the parameter is not marked as(out)
. Additionally, the annotations have no effect on the generated documentation.When a function takes
GError **error
, then the GObject introspection data includesthrows="1"
.
When gi-docgen sees that annotation, it inserts a standard text about it, so what we write there doesn't matter too much. It will only be seen by people reading the header file directly, so I have inserted a consistent text in those places.
Compiled and saw fewer warnings from gobject-introspection.
Summary | ID |
---|---|
18bf493265a777a754f6230c33e8a14d3fe1165f |