aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-03-31 15:30:04 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2021-03-31 15:30:04 -0400
commit522d1a89f8d7ed45681988c60bd0a687332a4023 (patch)
tree35e66168b6e8e5e50051a6280ef5be8212ab2645 /src
parent6197db5340b8154adce1c6d07f6d3325547429c1 (diff)
downloadpostgresql-522d1a89f8d7ed45681988c60bd0a687332a4023.tar.gz
postgresql-522d1a89f8d7ed45681988c60bd0a687332a4023.zip
Suppress compiler warning in libpq_pipeline.c.
Some compilers seem to be concerned about the possibility that recv_step is not any of the defined enum values. Silence warnings about uninitialized cmdtag in a different way than I did in 9fb9691a8.
Diffstat (limited to 'src')
-rw-r--r--src/test/modules/libpq_pipeline/libpq_pipeline.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/modules/libpq_pipeline/libpq_pipeline.c b/src/test/modules/libpq_pipeline/libpq_pipeline.c
index 92af8698d69..6e136877047 100644
--- a/src/test/modules/libpq_pipeline/libpq_pipeline.c
+++ b/src/test/modules/libpq_pipeline/libpq_pipeline.c
@@ -646,7 +646,7 @@ test_pipelined_insert(PGconn *conn, int n_rows)
while (!PQisBusy(conn) && recv_step < BI_DONE)
{
PGresult *res;
- const char *cmdtag;
+ const char *cmdtag = "";
const char *description = "";
int status;
@@ -697,7 +697,6 @@ test_pipelined_insert(PGconn *conn, int n_rows)
case BI_DONE:
/* unreachable */
pg_fatal("unreachable state");
- cmdtag = NULL; /* keep compiler quiet */
}
if (PQresultStatus(res) != status)