aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBryan Henderson <bryanh@giraffe.netgate.net>1996-11-18 01:44:28 +0000
committerBryan Henderson <bryanh@giraffe.netgate.net>1996-11-18 01:44:28 +0000
commit435d4f4a79e2d8cb780e612796800a6207e02643 (patch)
tree4607482ff6dbd4d9883c77e58a8bc0732740fe75 /src
parente780f0fef34a4078d8eaebda5621f99c034b806b (diff)
downloadpostgresql-435d4f4a79e2d8cb780e612796800a6207e02643.tar.gz
postgresql-435d4f4a79e2d8cb780e612796800a6207e02643.zip
Quiet compiler warnings, ignore the ones we can't.
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/libpq++/examples/Makefile6
-rw-r--r--src/interfaces/libpq++/examples/testlibpq0.cc6
-rw-r--r--src/interfaces/libpq++/examples/testlibpq2.cc2
-rw-r--r--src/interfaces/libpq++/examples/testlibpq3.cc3
-rw-r--r--src/interfaces/libpq++/examples/testlibpq4.cc3
-rw-r--r--src/interfaces/libpq++/examples/testlo.cc3
6 files changed, 10 insertions, 13 deletions
diff --git a/src/interfaces/libpq++/examples/Makefile b/src/interfaces/libpq++/examples/Makefile
index 1066d402255..21e0f38b7c4 100644
--- a/src/interfaces/libpq++/examples/Makefile
+++ b/src/interfaces/libpq++/examples/Makefile
@@ -5,7 +5,11 @@
SRCDIR= ../..
include ../../Makefile.global
-CXXFLAGS= $(CFLAGS)
+# We have to override -Werror, which makes warnings, fatal, because we
+# inevitably get the warning, "abstract declarator used as declaration"
+# because of our inclusion of c.h and we don't know how to stop that.
+
+CXXFLAGS= $(CFLAGS) -Wno-error
INCLUDE_OPT= \
-I.. \
diff --git a/src/interfaces/libpq++/examples/testlibpq0.cc b/src/interfaces/libpq++/examples/testlibpq0.cc
index 76f3ea80712..e8adb21f1be 100644
--- a/src/interfaces/libpq++/examples/testlibpq0.cc
+++ b/src/interfaces/libpq++/examples/testlibpq0.cc
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq++/examples/Attic/testlibpq0.cc,v 1.1.1.1 1996/07/09 06:22:18 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq++/examples/Attic/testlibpq0.cc,v 1.2 1996/11/18 01:44:23 bryanh Exp $
*
*-------------------------------------------------------------------------
*/
@@ -18,7 +18,7 @@
#include "libpq++.H"
int
-main(int argc, char** argv)
+main()
{
ExecStatusType status;
PGenv env;
@@ -41,7 +41,7 @@ main(int argc, char** argv)
if((status = data->exec(buf)) == PGRES_TUPLES_OK)
data->printtuples(stdout, 1, "|", 1, 0);
else
- printf("status = %s\nerrorMessage = %s\n", status,
+ printf("status = %d\nerrorMessage = %s\n", status,
data->errormessage());
else
done = 1;
diff --git a/src/interfaces/libpq++/examples/testlibpq2.cc b/src/interfaces/libpq++/examples/testlibpq2.cc
index 8eafea00b7a..5acba9666cd 100644
--- a/src/interfaces/libpq++/examples/testlibpq2.cc
+++ b/src/interfaces/libpq++/examples/testlibpq2.cc
@@ -24,8 +24,6 @@ INSERT INTO TBL1 values (10);
main()
{
char* dbName;
- int nFields;
- int i,j;
/* begin, by creating the parameter environtment for a backend
connection. When no parameters are given then the system will
diff --git a/src/interfaces/libpq++/examples/testlibpq3.cc b/src/interfaces/libpq++/examples/testlibpq3.cc
index 1146dffac98..b1e94e487e3 100644
--- a/src/interfaces/libpq++/examples/testlibpq3.cc
+++ b/src/interfaces/libpq++/examples/testlibpq3.cc
@@ -35,9 +35,8 @@ extern "C" {
main()
{
char* dbName;
- int nFields;
- int i,j;
int i_fnum, d_fnum, p_fnum;
+ int i;
/* begin, by creating the parameter environtment for a backend
connection. When no parameters are given then the system will
diff --git a/src/interfaces/libpq++/examples/testlibpq4.cc b/src/interfaces/libpq++/examples/testlibpq4.cc
index 9d5ca3ec769..dc78031843f 100644
--- a/src/interfaces/libpq++/examples/testlibpq4.cc
+++ b/src/interfaces/libpq++/examples/testlibpq4.cc
@@ -7,12 +7,9 @@
#include <stdio.h>
#include "libpq++.H"
-#define DEBUG printf("Got here %d\n", __LINE__);
main()
{
char* dbName;
- int nFields;
- int i,j;
/* begin, by creating the parameter environment for a backend
connection. When no parameters are given then the system will
diff --git a/src/interfaces/libpq++/examples/testlo.cc b/src/interfaces/libpq++/examples/testlo.cc
index be3459794f9..8e9b4757dff 100644
--- a/src/interfaces/libpq++/examples/testlo.cc
+++ b/src/interfaces/libpq++/examples/testlo.cc
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq++/examples/Attic/testlo.cc,v 1.1.1.1 1996/07/09 06:22:19 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq++/examples/Attic/testlo.cc,v 1.2 1996/11/18 01:44:28 bryanh Exp $
*
*-------------------------------------------------------------------------
*/
@@ -22,7 +22,6 @@ main(int argc, char **argv)
{
char *in_filename, *out_filename;
char *database;
- Oid lobjOid;
PGenv env;
PGlobj *object;