diff options
author | Tom Lane | 2021-03-31 19:30:04 +0000 |
---|---|---|
committer | Tom Lane | 2021-03-31 19:30:04 +0000 |
commit | 522d1a89f8d7ed45681988c60bd0a687332a4023 (patch) | |
tree | 35e66168b6e8e5e50051a6280ef5be8212ab2645 | |
parent | 6197db5340b8154adce1c6d07f6d3325547429c1 (diff) |
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.
-rw-r--r-- | src/test/modules/libpq_pipeline/libpq_pipeline.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/modules/libpq_pipeline/libpq_pipeline.c b/src/test/modules/libpq_pipeline/libpq_pipeline.c index 92af8698d69..6e136877047 100644 --- a/src/test/modules/libpq_pipeline/libpq_pipeline.c +++ b/src/test/modules/libpq_pipeline/libpq_pipeline.c @@ -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) |