mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-01 09:01:17 +02: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:
parent
6197db5340
commit
522d1a89f8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user