Skip to content

Commit 953ac7b

Browse files
committed
Fix up the -Wno-error problem for non-gcc compilers
Pointed out by many many ppl
1 parent a69c5fc commit 953ac7b

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

src/backend/bootstrap/Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Makefile for the bootstrap module
55
#
66
# IDENTIFICATION
7-
# $Header: /cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.6 1997/04/04 10:38:58 scrappy Exp $
7+
# $Header: /cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.7 1997/04/15 17:24:07 scrappy Exp $
88
#
99
#
1010
# We must build bootparse.c and bootscanner.c with yacc and lex and sed,
@@ -25,7 +25,11 @@ INCLUDE_OPT= -I.. \
2525
-I../port/$(PORTNAME) \
2626
-I../../include
2727

28-
CFLAGS+= $(INCLUDE_OPT) -Wno-error
28+
CFLAGS+= $(INCLUDE_OPT)
29+
30+
ifeq ($CC), gcc)
31+
CFLAGS+= -Wno-error
32+
endif
2933

3034
BOOTYACCS= bootstrap_tokens.h bootparse.c
3135

src/backend/optimizer/geqo/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66
# Copyright (c) 1994, Regents of the University of California
77
#
8-
# $Id: Makefile,v 1.5 1997/04/04 10:39:50 scrappy Exp $
8+
# $Id: Makefile,v 1.6 1997/04/15 17:24:17 scrappy Exp $
99
#
1010
#-------------------------------------------------------------------------
1111

@@ -16,7 +16,12 @@ INCLUDE_OPT = -I../.. \
1616
-I../../port/$(PORTNAME) \
1717
-I../../../include
1818

19-
CFLAGS+=$(INCLUDE_OPT) -Wno-error
19+
CFLAGS+=$(INCLUDE_OPT)
20+
21+
ifeq ($CC), gcc)
22+
CFLAGS+= -Wno-error
23+
endif
24+
2025

2126
OBJS = geqo_copy.o geqo_eval.o geqo_main.o geqo_misc.o \
2227
geqo_params.o geqo_paths.o geqo_pool.o geqo_recombination.o \

src/backend/parser/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Makefile for parser
55
#
66
# IDENTIFICATION
7-
# $Header: /cvsroot/pgsql/src/backend/parser/Makefile,v 1.6 1997/04/04 10:40:11 scrappy Exp $
7+
# $Header: /cvsroot/pgsql/src/backend/parser/Makefile,v 1.7 1997/04/15 17:24:26 scrappy Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -15,7 +15,12 @@ INCLUDE_OPT= -I.. \
1515
-I../port/$(PORTNAME) \
1616
-I../../include
1717

18-
CFLAGS+= $(INCLUDE_OPT) -Wno-error
18+
CFLAGS+= $(INCLUDE_OPT)
19+
20+
ifeq ($CC), gcc)
21+
CFLAGS+= -Wno-error
22+
endif
23+
1924

2025
OBJS= analyze.o catalog_utils.o dbcommands.o gram.o \
2126
keywords.o parser.o parse_query.o scan.o scansup.o sysfunc.o

0 commit comments

Comments
 (0)