8000 Fix a few warnings that have crept into CVS HEAD. · postgrespro/postgres_cluster@210faf2 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

8000
Appearance settings

Commit 210faf2

Browse files
committed
Fix a few warnings that have crept into CVS HEAD.
1 parent 9bf1db0 commit 210faf2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/bin/scripts/common.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Copyright (c) 2003-2008, PostgreSQL Global Development Group
66
*
7-
* $PostgreSQL: pgsql/src/bin/scripts/common.h,v 1.19 2008/01/01 19:45:56 momjian Exp $
7+
* $PostgreSQL: pgsql/src/bin/scripts/common.h,v 1.20 2008/05/14 15:16:27 momjian Exp $
88
*/
99
#ifndef COMMON_H
1010
#define COMMON_H
@@ -42,4 +42,6 @@ extern bool yesno_prompt(const char *question);
4242

4343
extern void setup_cancel_handler(void);
4444

45+
extern char *pg_strdup(const char *string);
46+
4547
#endif /* COMMON_H */

src/interfaces/ecpg/ecpglib/prepare.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/prepare.c,v 1.27 2008/05/12 16:29:04 meskes Exp $ */
1+
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/prepare.c,v 1.28 2008/05/14 15:16:27 momjian Exp $ */
22

33
#define POSTGRES_ECPG_INTERNAL
44
#include "postgres_fe.h"
@@ -117,7 +117,6 @@ ECPGprepare(int lineno, const char *connection_name, const int questionmarks, co
117117
struct statement *stmt;
118118
struct prepared_statement *this,
119119
*prev;
120-
struct sqlca_t *sqlca = ECPGget_sqlca();
121120
PGresult *query;
122121

123122
con = ecpg_get_connection(connection_name);

0 commit comments

Comments
 (0)
0