After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 731417 - G_DEPRECATED in GLib is marked as deprecated
G_DEPRECATED in GLib is marked as deprecated
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
1.21
Other Linux
: Normal normal
: ---
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2014-06-09 15:06 UTC by Sébastien Wilmet
Modified: 2014-07-09 13:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
tests: Add a macro with DEPRECATED in its name (1.16 KB, patch)
2014-06-27 11:04 UTC, Emmanuele Bassi (:ebassi)
committed Details | Review
scan: Ignore macro definitions with DEPRECATED in their name (953 bytes, patch)
2014-06-27 11:05 UTC, Emmanuele Bassi (:ebassi)
none Details | Review
scan: Improve the deprecated macro checks (1.11 KB, patch)
2014-06-27 12:05 UTC, Emmanuele Bassi (:ebassi)
none Details | Review
scan: Ignore macro definitions with DEPRECATED in their name (1.08 KB, patch)
2014-06-27 12:07 UTC, Emmanuele Bassi (:ebassi)
committed Details | Review
scan: Ignore macro definitions with DEPRECATED in their name (1.09 KB, patch)
2014-07-09 13:35 UTC, Stefan Sauer (gstreamer, gtkdoc dev)
committed Details | Review
tests: Add a macro with DEPRECATED in its name (1.17 KB, patch)
2014-07-09 13:35 UTC, Stefan Sauer (gstreamer, gtkdoc dev)
committed Details | Review

Description Sébastien Wilmet 2014-06-09 15:06:48 UTC
See the G_DEPRECATED and G_DEPRECATED_FOR documentation in GLib:
https://developer.gnome.org/glib/unstable/glib-Miscellaneous-Macros.html#G-DEPRECATED:CAPS

The symbols are marked as deprecated but it should not be the case. The GTK-Doc comment:
https://git.gnome.org/browse/glib/tree/glib/docs.c#n2015

/**
 * G_DEPRECATED:
 *
 * This macro is similar to %G_GNUC_DEPRECATED, and can be used to mark
 * functions declarations as deprecated. Unlike %G_GNUC_DEPRECATED, it is
 * meant to be portable across different compilers and must be placed
 * before the function declaration.
 *
 * Since: 2.32
 */
Comment 1 Emmanuele Bassi (:ebassi) 2014-06-27 11:04:56 UTC
Created attachment 279380 [details] [review]
tests: Add a macro with DEPRECATED in its name

It should not be marked as deprecated itself.
Comment 2 Emmanuele Bassi (:ebassi) 2014-06-27 11:05:06 UTC
Created attachment 279381 [details] [review]
scan: Ignore macro definitions with DEPRECATED in their name

These should not be automatically deprecated.
Comment 3 Emmanuele Bassi (:ebassi) 2014-06-27 12:05:16 UTC
Created attachment 279386 [details] [review]
scan: Improve the deprecated macro checks
Comment 4 Emmanuele Bassi (:ebassi) 2014-06-27 12:07:45 UTC
Created attachment 279388 [details] [review]
scan: Ignore macro definitions with DEPRECATED in their name

These should not be automatically deprecated.
Comment 5 Stefan Sauer (gstreamer, gtkdoc dev) 2014-07-09 13:35:02 UTC
The following fixes have been pushed:
0a46654 scan: Ignore macro definitions with DEPRECATED in their name
41d98e3 tests: Add a macro with DEPRECATED in its name
Comment 6 Stefan Sauer (gstreamer, gtkdoc dev) 2014-07-09 13:35:14 UTC
Created attachment 280265 [details] [review]
scan: Ignore macro definitions with DEPRECATED in their name

These should not be automatically deprecated.
Comment 7 Stefan Sauer (gstreamer, gtkdoc dev) 2014-07-09 13:35:18 UTC
Created attachment 280266 [details] [review]
tests: Add a macro with DEPRECATED in its name

It should not be marked as deprecated itself.