From 6936473a7bcfb0a52e5566e7c3f5c509a7407704 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Sat, 6 Dec 2025 18:27:14 +0100 Subject: [PATCH] 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. --- src/lib/shared/clapper-api-visibility.h.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/shared/clapper-api-visibility.h.in b/src/lib/shared/clapper-api-visibility.h.in index ecf3fb1c..52348005 100644 --- a/src/lib/shared/clapper-api-visibility.h.in +++ b/src/lib/shared/clapper-api-visibility.h.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