Content-Length: 257711 | pFad | http://github.com/postgrespro/postgres/commit/56b1e88c804b0c7e32f77b4e2bd3cc42ebdfcc3f

A1 Fix compiler warning. · postgrespro/postgres@56b1e88 · GitHub
Skip to content

Commit 56b1e88

Browse files
committed
Fix compiler warning.
Some buildfarm members complained about an always-true test in the SOFT_ERROR_OCCURRED macro. Fix by reading the field directly rather than using the macro. Reported-by: Tom Lane Discussion: https://postgr.es/m/2144895.1729653514@sss.pgh.pa.us
1 parent 07d0069 commit 56b1e88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/statistics/attribute_stats.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ text_to_stavalues(const char *staname, FmgrInfo *array_in, Datum d, Oid typid,
633633

634634
pfree(s);
635635

636-
if (SOFT_ERROR_OCCURRED(&escontext))
636+
if (escontext.error_occurred)
637637
{
638638
if (elevel != ERROR)
639639
escontext.error_data->elevel = elevel;

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/56b1e88c804b0c7e32f77b4e2bd3cc42ebdfcc3f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy