From 83e448e9e4d7623fb550c6ec6a3681a4ab2ff823 Mon Sep 17 00:00:00 2001 From: Man Zeng Date: Fri, 26 Dec 2025 10:21:18 +0800 Subject: [PATCH] Suppress deprecation warning for xmlKeepBlanksDefault() in xml.c xml.c uses libxml2's deprecated xmlKeepBlanksDefault() before the relevant functions are removed, but for now silence the warnings. Author: Man Zeng --- src/backend/utils/adt/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/backend/utils/adt/Makefile b/src/backend/utils/adt/Makefile index ba40ada11ca..7cc6b40914b 100644 --- a/src/backend/utils/adt/Makefile +++ b/src/backend/utils/adt/Makefile @@ -151,6 +151,12 @@ like.o: like.c like_match.c # Some code in numeric.c benefits from auto-vectorization numeric.o: CFLAGS += ${CFLAGS_VECTORIZE} +# xml.c uses libxml2's deprecated xmlKeepBlanksDefault() +# before the relevant functions are removed, but for now silence the warnings. +ifeq ($(GCC), yes) +xml.o: CFLAGS += -Wno-deprecated-declarations +endif + varlena.o: varlena.c levenshtein.c include $(top_srcdir)/src/backend/common.mk -- 2.45.2