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.
This commit is contained in:
Tom Lane 2021-03-31 15:30:04 -04:00
parent 6197db5340
commit 522d1a89f8
1 changed files with 1 additions and 2 deletions

View File

@ -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)