Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit522d1a8

Browse files
committed
Suppress compiler warning in libpq_pipeline.c.
Some compilers seem to be concerned about the possibility thatrecv_step is not any of the defined enum values. Silencewarnings about uninitialized cmdtag in a different way thanI did in9fb9691.
1 parent6197db5 commit522d1a8

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-
constchar*cmdtag;
649+
constchar*cmdtag="";
650650
constchar*description="";
651651
intstatus;
652652

@@ -697,7 +697,6 @@ test_pipelined_insert(PGconn *conn, int n_rows)
697697
caseBI_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)

[8]ページ先頭

©2009-2025 Movatter.jp