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:
parent
6197db5340
commit
522d1a89f8
@ -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)
|
|||||||
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user