mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
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:
@ -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)
|
||||||
|
Reference in New Issue
Block a user