From 0128f701badffdab2080473e8a5b0c77ebc05a89 Mon Sep 17 00:00:00 2001 From: Man Zeng Date: Thu, 25 Dec 2025 15:05:46 +0800 Subject: [PATCH] Suppress deprecation warning for xmlKeepBlanksDefault() in xml.c xml.c uses libxml2's deprecated xmlKeepBlanksDefault() which is the only API that provides the needed functionality for content mode parsing. The warning is harmless and does not affect tests, suppress it for this file. Author: Man Zeng --- src/backend/utils/adt/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/backend/utils/adt/Makefile b/src/backend/utils/adt/Makefile index ba40ada11ca..84c645d0e69 100644 --- a/src/backend/utils/adt/Makefile +++ b/src/backend/utils/adt/Makefile @@ -151,6 +151,11 @@ 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() which is +# the only API that provides the needed functionality for content +# mode parsing. Suppress the deprecation warning for this file. +xml.o: CFLAGS += -Wno-deprecated-declarations + varlena.o: varlena.c levenshtein.c include $(top_srcdir)/src/backend/common.mk -- 2.45.2