mirror of
https://github.com/Rafostar/clapper.git
synced 2025-12-24 05:56:41 +01:00
shared: Improve disabling of deprecations warnings
Have a separate compile option to disable them like GLib does. This way we can define it across libs and apps to have them all be quiet. This is done to avoid messages about legacy features that are left for compatibility or fallback purposes.
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
|
||||
#define @CLAPPER_API@_API _@CLAPPER_API@_VISIBILITY
|
||||
|
||||
#if !defined(@CLAPPER_API@_COMPILATION)
|
||||
#if !defined(CLAPPER_DISABLE_DEPRECATION_WARNINGS)
|
||||
#define @CLAPPER_API@_DEPRECATED G_DEPRECATED _@CLAPPER_API@_VISIBILITY
|
||||
#define @CLAPPER_API@_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) _@CLAPPER_API@_VISIBILITY
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user