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.
while (!PQisBusy(conn) && recv_step < BI_DONE)
{
PGresult *res;
- const char *cmdtag;
+ const char *cmdtag = "";
const char *description = "";
int status;
case BI_DONE:
/* unreachable */
pg_fatal("unreachable state");
- cmdtag = NULL; /* keep compiler quiet */
}
if (PQresultStatus(res) != status)