pgsql: Suppress compiler warning in non-USE_LIBXML builds.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Suppress compiler warning in non-USE_LIBXML builds.
Date: 2017-03-08 21:10:34
Message-ID: E1cliqw-0000XO-Nb@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Suppress compiler warning in non-USE_LIBXML builds.

Compilers that don't realize that ereport(ERROR) doesn't return
complained that XmlTableGetValue() failed to return a value.

Also, make XmlTableFetchRow's non-USE_LIBXML case look more like
the other ones. As coded, it could lead to "unreachable code"
warnings with USE_LIBXML enabled.

Oversights in commit fcec6caaf. Per buildfarm.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/f379121093deb5465b01d93ebe9410d96c6cd093

Modified Files
--------------
src/backend/utils/adt/xml.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-03-08 21:19:45 pgsql: Suppress compiler warning in slab.c.
Previous Message Tom Lane 2017-03-08 20:41:11 Re: pgsql: Suppress compiler warnings in ecpg test on newer Windows toolcha