Commit 522d1a89 authored by Tom Lane's avatar Tom Lane

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 9fb9691a.
parent 6197db53
...@@ -646,7 +646,7 @@ test_pipelined_insert(PGconn *conn, int n_rows) ...@@ -646,7 +646,7 @@ test_pipelined_insert(PGconn *conn, int n_rows)
while (!PQisBusy(conn) && recv_step < BI_DONE) while (!PQisBusy(conn) && recv_step < BI_DONE)
{ {
PGresult *res; PGresult *res;
const char *cmdtag; const char *cmdtag = "";
const char *description = ""; const char *description = "";
int status; int status;
...@@ -697,7 +697,6 @@ test_pipelined_insert(PGconn *conn, int n_rows) ...@@ -697,7 +697,6 @@ test_pipelined_insert(PGconn *conn, int n_rows)
case BI_DONE: case BI_DONE:
/* unreachable */ /* unreachable */
pg_fatal("unreachable state"); pg_fatal("unreachable state");
cmdtag = NULL; /* keep compiler quiet */
} }
if (PQresultStatus(res) != status) if (PQresultStatus(res) != status)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment