From: Matthias Clasen Date: Mon, 19 Dec 2011 12:45:43 +0000 (-0500) Subject: Teach gtk-doc about G_GNUC_WARN_UNUSED_RESULT X-Git-Tag: 2.31.6~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=40413490374777c0aba8b569f5ad45ffc205cac0;p=platform%2Fupstream%2Fglib.git Teach gtk-doc about G_GNUC_WARN_UNUSED_RESULT --- diff --git a/docs/reference/gio/Makefile.am b/docs/reference/gio/Makefile.am index ea65c7f..3c2a4ca 100644 --- a/docs/reference/gio/Makefile.am +++ b/docs/reference/gio/Makefile.am @@ -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 diff --git a/docs/reference/glib/Makefile.am b/docs/reference/glib/Makefile.am index 4dd4ee9..beac383 100644 --- a/docs/reference/glib/Makefile.am +++ b/docs/reference/glib/Makefile.am @@ -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 diff --git a/docs/reference/gobject/Makefile.am b/docs/reference/gobject/Makefile.am index e108116..3a637b7 100644 --- a/docs/reference/gobject/Makefile.am +++ b/docs/reference/gobject/Makefile.am @@ -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