GNOME Bugzilla – Bug 794590
Do not warn about deprecated symbols without guards in case of macros
Last modified: 2018-03-26 07:34:59 UTC
We already handle the case of properties and signals, but macros don't have a guard either. warning: WEBKIT_DOM_XPATH_RESULT_FIRST_ORDERED_NODE_TYPE is deprecated in the inline comments, but no deprecation guards were found around the declaration. (See the --deprecated-guards option for gtkdoc-scan.) Got a bunch of this after deprecating several public macros in WebKit DOM API.
Created attachment 369996 [details] [review] mkdb: do not warn about deprecated symbols without guards in case of macros
Why can't macros have deprecation guards?
I think they can only be used with functions.
I mean all the the deprecation guards do is: #ifndef FOOBAR_DISABLE_DEPRECATED #define WEBKIT_DOM_XPATH_RESULT_FIRST_ORDERED_NODE_TYPE #endif
(In reply to Stefan Sauer (gstreamer, gtkdoc dev) from comment #4) > I mean all the the deprecation guards do is: > > #ifndef FOOBAR_DISABLE_DEPRECATED > #define WEBKIT_DOM_XPATH_RESULT_FIRST_ORDERED_NODE_TYPE > #endif Ah, I thought the warning was about missing G_DEPRECATED.
You are right, those guards fixed the issue, thanks. Sorry for the noise.