Skip to content

Commit 435d4f4

Browse files
author
Bryan Henderson
committed
Quiet compiler warnings, ignore the ones we can't.
1 parent e780f0f commit 435d4f4

File tree

6 files changed

+10
-13
lines changed

6 files changed

+10
-13
lines changed

src/interfaces/libpq++/examples/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
SRCDIR= ../..
66
include ../../Makefile.global
77

8-
CXXFLAGS= $(CFLAGS)
8+
# We have to override -Werror, which makes warnings, fatal, because we
9+
# inevitably get the warning, "abstract declarator used as declaration"
10+
# because of our inclusion of c.h and we don't know how to stop that.
11+
12+
CXXFLAGS= $(CFLAGS) -Wno-error
913

1014
INCLUDE_OPT= \
1115
-I.. \

src/interfaces/libpq++/examples/testlibpq0.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $Header: /cvsroot/pgsql/src/interfaces/libpq++/examples/Attic/testlibpq0.cc,v 1.1.1.1 1996/07/09 06:22:18 scrappy Exp $
12+
* $Header: /cvsroot/pgsql/src/interfaces/libpq++/examples/Attic/testlibpq0.cc,v 1.2 1996/11/18 01:44:23 bryanh Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -18,7 +18,7 @@
1818
#include "libpq++.H"
1919

2020
int
21-
main(int argc, char** argv)
21+
main()
2222
{
2323
ExecStatusType status;
2424
PGenv env;
@@ -41,7 +41,7 @@ main(int argc, char** argv)
4141
if((status = data->exec(buf)) == PGRES_TUPLES_OK)
4242
data->printtuples(stdout, 1, "|", 1, 0);
4343
else
44-
printf("status = %s\nerrorMessage = %s\n", status,
44+
printf("status = %d\nerrorMessage = %s\n", status,
4545
data->errormessage());
4646
else
4747
done = 1;

src/interfaces/libpq++/examples/testlibpq2.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ INSERT INTO TBL1 values (10);
2424
main()
2525
{
2626
char* dbName;
27-
int nFields;
28-
int i,j;
2927

3028
/* begin, by creating the parameter environtment for a backend
3129
connection. When no parameters are given then the system will

src/interfaces/libpq++/examples/testlibpq3.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ extern "C" {
3535
main()
3636
{
3737
char* dbName;
38-
int nFields;
39-
int i,j;
4038
int i_fnum, d_fnum, p_fnum;
39+
int i;
4140

4241
/* begin, by creating the parameter environtment for a backend
4342
connection. When no parameters are given then the system will

src/interfaces/libpq++/examples/testlibpq4.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@
77
#include <stdio.h>
88
#include "libpq++.H"
99

10-
#define DEBUG printf("Got here %d\n", __LINE__);
1110
main()
1211
{
1312
char* dbName;
14-
int nFields;
15-
int i,j;
1613

1714
/* begin, by creating the parameter environment for a backend
1815
connection. When no parameters are given then the system will

src/interfaces/libpq++/examples/testlo.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/interfaces/libpq++/examples/Attic/testlo.cc,v 1.1.1.1 1996/07/09 06:22:19 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/interfaces/libpq++/examples/Attic/testlo.cc,v 1.2 1996/11/18 01:44:28 bryanh Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -22,7 +22,6 @@ main(int argc, char **argv)
2222
{
2323
char *in_filename, *out_filename;
2424
char *database;
25-
Oid lobjOid;
2625
PGenv env;
2726
PGlobj *object;
2827

0 commit comments

Comments
 (0)