Teach gtk-doc about G_GNUC_WARN_UNUSED_RESULT

This commit is contained in:
Matthias Clasen 2011-12-19 07:45:43 -05:00
parent 0971d36e4b
commit 4041349037
3 changed files with 4 additions and 3 deletions

View File

@ -10,7 +10,8 @@ DOC_MODULE=gio
DOC_MAIN_SGML_FILE=gio-docs.xml
# Extra options to supply to gtkdoc-scan
SCAN_OPTIONS=--deprecated-guards="G_DISABLE_DEPRECATED"
SCAN_OPTIONS=--deprecated-guards="G_DISABLE_DEPRECATED" \
--ignore-decorators="G_GNUC_WARN_UNUSED_RESULT"
# The directory containing the source code. Relative to $(srcdir)
DOC_SOURCE_DIR=$(top_srcdir)/gio

View File

@ -13,7 +13,7 @@ DOC_MAIN_SGML_FILE=glib-docs.sgml
DOC_SOURCE_DIR=$(top_srcdir)/glib $(top_srcdir)/gmodule
# Extra options to supply to gtkdoc-scan
SCAN_OPTIONS=--deprecated-guards="G_DISABLE_DEPRECATED" --ignore-decorators="GLIB_VAR"
SCAN_OPTIONS=--deprecated-guards="G_DISABLE_DEPRECATED" --ignore-decorators="GLIB_VAR|G_GNUC_WARN_UNUSED_RESULT"
# Extra options to supply to gtkdoc-mkdb
MKDB_OPTIONS=--sgml-mode --output-format=xml --name-space=g

View File

@ -14,7 +14,7 @@ DOC_SOURCE_DIR=$(top_srcdir)/gobject
# Extra options to supply to gtkdoc-scan
SCAN_OPTIONS=--deprecated-guards="G_DISABLE_DEPRECATED" \
--ignore-decorators=G_GNUC_INTERNAL
--ignore-decorators="G_GNUC_INTERNAL|G_GNUC_WARN_UNUSED_RESULT"
# Extra options to supply to gtkdoc-mkdb
MKDB_OPTIONS=--sgml-mode --output-format=xml --name-space=g