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= ../..
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.. \

View File

@ -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;

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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;