From fa7187990949bc45567ed15cdf4c4e6f9f2b6808 Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Sun, 8 Mar 2020 16:34:11 +0200 Subject: [PATCH] [libmce-glib] Ignore GLib deprecation warnings. JB#43321 Apparently, the only way to get rid of "warning: G_ADD_PRIVATE" with latest GLib is to completely disable all Glib deprecation warnings. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6eb573b..219f4aa 100644 --- a/Makefile +++ b/Makefile @@ -68,6 +68,7 @@ CC = $(CROSS_COMPILE)gcc endif LD = $(CC) +DEFINES += -DGLIB_DISABLE_DEPRECATION_WARNINGS WARNINGS = -Wall -Wno-unused-parameter -Wno-multichar INCLUDES = -I$(INCLUDE_DIR) -I$(GEN_DIR) BASE_FLAGS = -fPIC $(CFLAGS) @@ -185,7 +186,7 @@ $(DEBUG_LINK): $(RELEASE_LINK): ln -sf $(LIB) $@ -$(PKGCONFIG): $(LIB_NAME).pc.in +$(PKGCONFIG): $(LIB_NAME).pc.in Makefile sed -e 's/\[version\]/'$(PCVERSION)/g $< > $@ #