From 1b786c97f34d76301919829f7ed340cd62f63db6 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 14 May 2008 15:16:27 +0000 Subject: [PATCH] Fix a few warnings that have crept into CVS HEAD. --- src/bin/scripts/common.h | 2 ++ src/interfaces/ecpg/ecpglib/prepare.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) 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); -- 2.39.5