Skip to content

Commit 8d33f80

Browse files
committed
Suppress gcc warning.
1 parent 478c95a commit 8d33f80

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/interfaces/ecpg/lib/error.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/error.c,v 1.17 2003/02/13 13:11:52 meskes Exp $ */
1+
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/error.c,v 1.18 2003/02/13 18:13:22 tgl Exp $ */
22

33
#include "postgres_fe.h"
44

@@ -12,7 +12,8 @@
1212

1313
/* This should hold the back-end error message from
1414
* the last back-end operation. */
15-
char *ECPGerr;
15+
static char *ECPGerr;
16+
1617

1718
void
1819
ECPGraise(int line, int code, const char *str)

src/interfaces/ecpg/lib/extern.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66

77
/* Here are some methods used by the lib. */
88

9-
/* Stores the backend error message for client access */
9+
/* Store and retrieve the backend error message for client access */
1010
void set_backend_err(const char *err, int lineon);
11+
char *ECPGerrmsg(void);
1112

1213
/* Returns a pointer to a string containing a simple type name. */
1314
void ECPGadd_mem(void *ptr, int lineno);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy