Fix a few warnings that have crept into CVS HEAD.
authorBruce Momjian <bruce@momjian.us>
Wed, 14 May 2008 15:16:27 +0000 (15:16 +0000)
committerBruce Momjian <bruce@momjian.us>
Wed, 14 May 2008 15:16:27 +0000 (15:16 +0000)
src/bin/scripts/common.h
src/interfaces/ecpg/ecpglib/prepare.c

index 75e1bc94e6e5668c4019e3eecee08a7ea602c42e..f965620bdcc25ee77f251698dc3929831aeb5f9a 100644 (file)
@@ -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 */
index f20c7e7bad688f56217e6d35b4aad76e4b15cd60..f09910f464481b2b7ba2a81fa8975d61ae438a7a 100644 (file)
@@ -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);