Quiet compiler warnings, ignore the ones we can't.

This commit is contained in:
Bryan Henderson 1996-11-18 01:44:28 +00:00
parent e780f0fef3
commit 435d4f4a79
6 changed files with 10 additions and 13 deletions

View File

@ -5,7 +5,11 @@
SRCDIR= ../.. SRCDIR= ../..
include ../../Makefile.global 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= \ INCLUDE_OPT= \
-I.. \ -I.. \

View File

@ -9,7 +9,7 @@
* *
* *
* IDENTIFICATION * 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" #include "libpq++.H"
int int
main(int argc, char** argv) main()
{ {
ExecStatusType status; ExecStatusType status;
PGenv env; PGenv env;
@ -41,7 +41,7 @@ main(int argc, char** argv)
if((status = data->exec(buf)) == PGRES_TUPLES_OK) if((status = data->exec(buf)) == PGRES_TUPLES_OK)
data->printtuples(stdout, 1, "|", 1, 0); data->printtuples(stdout, 1, "|", 1, 0);
else else
printf("status = %s\nerrorMessage = %s\n", status, printf("status = %d\nerrorMessage = %s\n", status,
data->errormessage()); data->errormessage());
else else
done = 1; done = 1;

View File

@ -24,8 +24,6 @@ INSERT INTO TBL1 values (10);
main() main()
{ {
char* dbName; char* dbName;
int nFields;
int i,j;
/* begin, by creating the parameter environtment for a backend /* begin, by creating the parameter environtment for a backend
connection. When no parameters are given then the system will connection. When no parameters are given then the system will

View File

@ -35,9 +35,8 @@ extern "C" {
main() main()
{ {
char* dbName; char* dbName;
int nFields;
int i,j;
int i_fnum, d_fnum, p_fnum; int i_fnum, d_fnum, p_fnum;
int i;
/* begin, by creating the parameter environtment for a backend /* begin, by creating the parameter environtment for a backend
connection. When no parameters are given then the system will connection. When no parameters are given then the system will

View File

@ -7,12 +7,9 @@
#include <stdio.h> #include <stdio.h>
#include "libpq++.H" #include "libpq++.H"
#define DEBUG printf("Got here %d\n", __LINE__);
main() main()
{ {
char* dbName; char* dbName;
int nFields;
int i,j;
/* begin, by creating the parameter environment for a backend /* begin, by creating the parameter environment for a backend
connection. When no parameters are given then the system will connection. When no parameters are given then the system will

View File

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * 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 *in_filename, *out_filename;
char *database; char *database;
Oid lobjOid;
PGenv env; PGenv env;
PGlobj *object; PGlobj *object;