8000 Fix compiler warning. · postgres/postgres@56b1e88 · GitHub
[go: up one dir, main page]

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)
2906
0