From: Bruce Momjian Date: Wed, 14 May 2008 15:16:27 +0000 (+0000) Subject: Fix a few warnings that have crept into CVS HEAD. X-Git-Tag: recoveryinfrav9~1043 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=1b786c97f34d76301919829f7ed340cd62f63db6;p=users%2Fsimon%2Fpostgres.git Fix a few warnings that have crept into CVS HEAD. --- diff --git a/src/bin/scripts/common.h b/src/bin/scripts/common.h index 75e1bc94e6..f965620bdc 100644 --- a/src/bin/scripts/common.h +++ b/src/bin/scripts/common.h @@ -42,4 +42,6 @@ extern bool yesno_prompt(const char *question); extern void setup_cancel_handler(void); +extern char *pg_strdup(const char *string); + #endif /* COMMON_H */ diff --git a/src/interfaces/ecpg/ecpglib/prepare.c b/src/interfaces/ecpg/ecpglib/prepare.c index f20c7e7bad..f09910f464 100644 --- a/src/interfaces/ecpg/ecpglib/prepare.c +++ b/src/interfaces/ecpg/ecpglib/prepare.c @@ -117,7 +117,6 @@ ECPGprepare(int lineno, const char *connection_name, const int questionmarks, co struct statement *stmt; struct prepared_statement *this, *prev; - struct sqlca_t *sqlca = ECPGget_sqlca(); PGresult *query; con = ecpg_get_connection(connection_name);