From 20266f6089e2301d0aace4e97c57d720b3b081d1 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 16 Nov 2022 12:01:35 +0000 Subject: [PATCH] gmodule: Fix redeclaration of symbol This should fix the Coverity build, which is currently broken: https://gitlab.gnome.org/GNOME/glib/-/jobs/2389979 ``` ../gmodule/gmodule-deprecated.c:8: error: "GLIB_DISABLE_DEPRECATION_WARNINGS" redefined [-Werror] 8 | #define GLIB_DISABLE_DEPRECATION_WARNINGS | : note: this is the location of the previous definition cc1: all warnings being treated as errors ``` Signed-off-by: Philip Withnall --- gmodule/gmodule-deprecated.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gmodule/gmodule-deprecated.c b/gmodule/gmodule-deprecated.c index e3f1fada7..482779077 100644 --- a/gmodule/gmodule-deprecated.c +++ b/gmodule/gmodule-deprecated.c @@ -5,7 +5,10 @@ * to continue using G_MODULE_SUFFIX in the implementation of * g_module_build_path() which is also deprecated API. */ +#ifndef GLIB_DISABLE_DEPRECATION_WARNINGS #define GLIB_DISABLE_DEPRECATION_WARNINGS +#endif + #include #if (G_MODULE_IMPL == G_MODULE_IMPL_AR) || (G_MODULE_IMPL == G_MODULE_IMPL_DL)