Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+1-2
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)