Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f379121

Browse files
committed
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 fcec6ca. Per buildfarm.
1 parent 86dbbf2 commit f379121

File tree

1 file changed

+2
-2
lines changed
  • src/backend/utils/adt

1 file changed

+2
-2
lines changed

src/backend/utils/adt/xml.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4389,9 +4389,8 @@ XmlTableFetchRow(TableFuncScanState *state)
43894389
return false;
43904390
#else
43914391
NO_XML_SUPPORT();
4392-
#endif /* not USE_LIBXML */
4393-
43944392
return false;
4393+
#endif /* not USE_LIBXML */
43954394
}
43964395

43974396
/*
@@ -4561,6 +4560,7 @@ XmlTableGetValue(TableFuncScanState *state, int colnum,
45614560
return result;
45624561
#else
45634562
NO_XML_SUPPORT();
4563+
return 0;
45644564
#endif /* not USE_LIBXML */
45654565
}
45664566

0 commit comments

Comments
 (0)