GNOME Bugzilla – Bug 382288
Add configure option to disable deprecated library functions
Last modified: 2009-06-24 23:33:22 UTC
This was suggested Paolo Borelli in bug #357970 as an enhancement. I'm filing this bug so his suggestion can be addressed separately. The relevant comments from bug #357970 follow. Comment #3 from paolo borelli (developer, points: 21) 2006-09-28 13:07 UTC [reply] I am always curious of cleanups throughout the gnome stack, so I noticed this bug being filed. Great stuff. What about adding this to configure.in ? AC_ARG_ENABLE(deprecations, [AC_HELP_STRING([--enable-deprecations], [warn about deprecated usages [default=no]])],, [enable_deprecations=no]) if test "x$enable_deprecations" = "xyes"; then DISABLE_DEPRECATED_CFLAGS="\ -DG_DISABLE_DEPRECATED \ -DGDK_DISABLE_DEPRECATED \ -DGTK_DISABLE_DEPRECATED \ -DGDK_PIXBUF_DISABLE_DEPRECATED \ -DGNOME_DISABLE_DEPRECATED" AC_SUBST(DISABLE_DEPRECATED_CFLAGS) fi Comment #4 from Harish Krishnaswamy (Evolution developer, points: 15) 2006-09-28 17:45 UTC [reply] Mathew : thanks for the updated patch. Paolo : Thanks for the configure.in snippet. I agree this is a good (must) thing to have. I do not have access to my workarea atm...but will review/test this tomorrow and ensure it hits the 2.8.1 release. Comment #5 from Matthew Barnes (reporter, points: 13) 2006-09-29 01:43 UTC [reply] (In reply to comment #3) Great idea, although we're not quite ready for GTK_DISABLE_DEPRECATED or GNOME_DISABLE_DEPRECATED. I'm working on that.
E-D-S should also provide a way to disable its own deprecated symbols, preferably by means similar to that of GTK+. i.e. #ifndef EDS_DISABLE_DEPRECATED /* ... deprecated definitions ... */ #endif It should be tied into the Makefiles for the API documentation as well, so that deprecation warnings automatically appear. Possible candidates for deprecation include EMutex (bug #356177) and EThread (bug #362638).
Bumping version to a stable release.
Closing this as OBSOLETE since we compile with these flags by default now.