From: Bryan Henderson Date: Mon, 18 Nov 1996 01:44:28 +0000 (+0000) Subject: Quiet compiler warnings, ignore the ones we can't. X-Git-Tag: REL2_0~98 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=435d4f4a79e2d8cb780e612796800a6207e02643;p=postgresql Quiet compiler warnings, ignore the ones we can't. --- diff --git a/src/interfaces/libpq++/examples/Makefile b/src/interfaces/libpq++/examples/Makefile index 1066d40225..21e0f38b7c 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 76f3ea8071..e8adb21f1b 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 8eafea00b7..5acba9666c 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 1146dffac9..b1e94e487e 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 9d5ca3ec76..dc78031843 100644 --- a/src/interfaces/libpq++/examples/testlibpq4.cc +++ b/src/interfaces/libpq++/examples/testlibpq4.cc @@ -7,12 +7,9 @@ #include #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 be3459794f..8e9b4757df 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;