aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/ecpglib/connect.c
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2010-11-02 18:12:01 +0100
committerMichael Meskes <meskes@postgresql.org>2010-11-02 18:12:01 +0100
commit35d5d962e1777560baf6f5edec906a907a853c9a (patch)
treeda8655d2409ebd61863735a1f321052eaedbc636 /src/interfaces/ecpg/ecpglib/connect.c
parent8c843fff2d8db7889b81782ab4f3324cbda4ed2a (diff)
downloadpostgresql-35d5d962e1777560baf6f5edec906a907a853c9a.tar.gz
postgresql-35d5d962e1777560baf6f5edec906a907a853c9a.zip
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.
Diffstat (limited to 'src/interfaces/ecpg/ecpglib/connect.c')
-rw-r--r--src/interfaces/ecpg/ecpglib/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/ecpglib/connect.c b/src/interfaces/ecpg/ecpglib/connect.c
index 0091b5dc98f..3bd6614e723 100644
--- a/src/interfaces/ecpg/ecpglib/connect.c
+++ b/src/interfaces/ecpg/ecpglib/connect.c
@@ -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;