From e780f0fef34a4078d8eaebda5621f99c034b806b Mon Sep 17 00:00:00 2001 From: Bryan Henderson <bryanh@giraffe.netgate.net> Date: Mon, 18 Nov 1996 01:43:55 +0000 Subject: [PATCH] Ignore compiler warnings, because we can't escape "abstract declarator used as declaration". --- src/interfaces/libpq++/Makefile | 8 ++++++-- src/interfaces/libpq++/pgenv.cc | 6 ++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/interfaces/libpq++/Makefile b/src/interfaces/libpq++/Makefile index 90e9a770c22..941c07da4f2 100644 --- a/src/interfaces/libpq++/Makefile +++ b/src/interfaces/libpq++/Makefile @@ -7,14 +7,18 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/Makefile,v 1.4 1996/11/14 10:25:54 bryanh Exp $ +# $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/Makefile,v 1.5 1996/11/18 01:43:54 bryanh Exp $ # #------------------------------------------------------------------------- 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../backend \ diff --git a/src/interfaces/libpq++/pgenv.cc b/src/interfaces/libpq++/pgenv.cc index aab4f213eb2..7d696cf043f 100644 --- a/src/interfaces/libpq++/pgenv.cc +++ b/src/interfaces/libpq++/pgenv.cc @@ -14,7 +14,7 @@ * Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pgenv.cc,v 1.1.1.1 1996/07/09 06:22:18 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pgenv.cc,v 1.2 1996/11/18 01:43:55 bryanh Exp $ * *------------------------------------------------------------------------- */ @@ -23,14 +23,12 @@ #include "libpq++.H" #define DefaultAuth DEFAULT_CLIENT_AUTHSVC -#define DefaultPort POSTPORT +#define DefaultPort "5432" // default constructor for PGenv // checks the environment variables PGenv::PGenv() { - char* temp; - pgauth = NULL; pghost = NULL; pgport = NULL; -- GitLab