Skip to content

Commit 522d1a8

Browse files
committed
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 9fb9691.
1 parent 6197db5 commit 522d1a8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test/modules/libpq_pipeline/libpq_pipeline.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ test_pipelined_insert(PGconn *conn, int n_rows)
646646
while (!PQisBusy(conn) && recv_step < BI_DONE)
647647
{
648648
PGresult *res;
649-
const char *cmdtag;
649+
const char *cmdtag = "";
650650
const char *description = "";
651651
int status;
652652

@@ -697,7 +697,6 @@ test_pipelined_insert(PGconn *conn, int n_rows)
697697
case BI_DONE:
698698
/* unreachable */
699699
pg_fatal("unreachable state");
700-
cmdtag = NULL; /* keep compiler quiet */
701700
}
702701

703702
if (PQresultStatus(res) != status)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy