summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/ecpglib/descriptor.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2019-01-23 22:46:45 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2019-01-23 22:47:18 -0500
commit7ac0e71aa623218aad30fb3845ed8771875e6a66 (patch)
tree5416cfb3d69b8c1f4b24a39c4d8e662ad21f4d4a /src/interfaces/ecpg/ecpglib/descriptor.c
parenta5e48d1ed42940e64a5f862e319fd4ff8329edb8 (diff)
Blind attempt to fix _configthreadlocale() failures on MinGW.
Apparently, some builds of MinGW contain a version of _configthreadlocale() that always returns -1, indicating failure. Rather than treating that as a curl-up-and-die condition, soldier on as though the function didn't exist. This leaves us without thread safety on such MinGW versions, but we didn't have it anyway. Discussion: https://postgr.es/m/d06a16bc-52d6-9f0d-2379-21242d7dbe81@2ndQuadrant.com
Diffstat (limited to 'src/interfaces/ecpg/ecpglib/descriptor.c')
-rw-r--r--src/interfaces/ecpg/ecpglib/descriptor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/ecpglib/descriptor.c b/src/interfaces/ecpg/ecpglib/descriptor.c
index 3caeff5806d..aa31655c63b 100644
--- a/src/interfaces/ecpg/ecpglib/descriptor.c
+++ b/src/interfaces/ecpg/ecpglib/descriptor.c
@@ -518,7 +518,7 @@ ECPGget_desc(int lineno, const char *desc_name, int index,...)
}
#ifdef HAVE__CONFIGTHREADLOCALE
if (stmt.oldthreadlocale != -1)
- _configthreadlocale(stmt.oldthreadlocale);
+ (void) _configthreadlocale(stmt.oldthreadlocale);
#endif
#endif
}