mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Some cleanup in ecpg code:
Use bool as type for booleans instead of int. Do not implicitely cast size_t to int. Make the compiler stop complaining about unused variables by adding an empty statement.
This commit is contained in:
@ -214,9 +214,9 @@ ECPGnoticeReceiver(void *arg, const PGresult *result)
|
||||
char *sqlstate = PQresultErrorField(result, PG_DIAG_SQLSTATE);
|
||||
char *message = PQresultErrorField(result, PG_DIAG_MESSAGE_PRIMARY);
|
||||
struct sqlca_t *sqlca = ECPGget_sqlca();
|
||||
|
||||
int sqlcode;
|
||||
|
||||
(void) arg; /* keep the compiler quiet */
|
||||
if (sqlstate == NULL)
|
||||
sqlstate = ECPG_SQLSTATE_ECPG_INTERNAL_ERROR;
|
||||
|
||||
|
Reference in New Issue
Block a user