diff options
author | Jeff Davis <jdavis@postgresql.org> | 2024-10-23 10:24:17 -0700 |
---|---|---|
committer | Jeff Davis <jdavis@postgresql.org> | 2024-10-23 10:24:17 -0700 |
commit | 56b1e88c804b0c7e32f77b4e2bd3cc42ebdfcc3f (patch) | |
tree | 91eca78ef2c58145db88983cfbef4d53767be87c /src | |
parent | 07d00692c8da83fe2835900b2294e8966c2be247 (diff) | |
download | postgresql-56b1e88c804b0c7e32f77b4e2bd3cc42ebdfcc3f.tar.gz postgresql-56b1e88c804b0c7e32f77b4e2bd3cc42ebdfcc3f.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/statistics/attribute_stats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/statistics/attribute_stats.c b/src/backend/statistics/attribute_stats.c index c920409680a..086dceaeafe 100644 --- a/src/backend/statistics/attribute_stats.c +++ b/src/backend/statistics/attribute_stats.c @@ -633,7 +633,7 @@ text_to_stavalues(const char *staname, FmgrInfo *array_in, Datum d, Oid typid, pfree(s); - if (SOFT_ERROR_OCCURRED(&escontext)) + if (escontext.error_occurred) { if (elevel != ERROR) escontext.error_data->elevel = elevel; |