Re: Deprecation warnings on Rocky 10.2 with current dev branch - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Deprecation warnings on Rocky 10.2 with current dev branch
Date
Msg-id 3880726.1784299081@sss.pgh.pa.us
Whole thread
In response to Deprecation warnings on Rocky 10.2 with current dev branch  ("Daniel Westermann (DWE)" <daniel.westermann@dbi-services.com>)
Responses Re: Deprecation warnings on Rocky 10.2 with current dev branch
List pgsql-hackers
"Daniel Westermann (DWE)" <daniel.westermann@dbi-services.com> writes:
> I've just noticed this while building from the dev branch on Rocky 10.2 x64:
> ../postgresql/src/backend/utils/adt/xml.c:1961:17: warning: ‘xmlKeepBlanksDefault’ is deprecated
[-Wdeprecated-declarations]
>  1961 |                 xmlKeepBlanksDefault(save_keep_blanks);
>       |                 ^~~~~~~~~~~~~~~~~~~~

> Is this known already?

Yeah.  It's annoying as heck, because they deprecated that without
providing an adequate replacement.  The replacement is claimed to
be "Use the modern options API with XML_PARSE_NOBLANKS", but there
is no direct equivalent to xmlParseBalancedChunkMemory that takes
an options argument.

So to get rid of this, we're looking at a probably-nontrivial
rewrite of xml_parse(), with possibly some user-visible behavioral
changes, and who-knows-what effects for compatibility across
different libxml2 versions.

If you feel like researching that, have at it.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCH] Rename "getdatabaseencoding()" to "pg_database_encoding()", and document
Next
From: Jacob Champion
Date:
Subject: Re: ci: namespace ccache by PostgreSQL major version