mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
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.
This commit is contained in:
@ -4389,9 +4389,8 @@ XmlTableFetchRow(TableFuncScanState *state)
|
|||||||
return false;
|
return false;
|
||||||
#else
|
#else
|
||||||
NO_XML_SUPPORT();
|
NO_XML_SUPPORT();
|
||||||
#endif /* not USE_LIBXML */
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
#endif /* not USE_LIBXML */
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -4561,6 +4560,7 @@ XmlTableGetValue(TableFuncScanState *state, int colnum,
|
|||||||
return result;
|
return result;
|
||||||
#else
|
#else
|
||||||
NO_XML_SUPPORT();
|
NO_XML_SUPPORT();
|
||||||
|
return 0;
|
||||||
#endif /* not USE_LIBXML */
|
#endif /* not USE_LIBXML */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user