Skip to content

Commit 29a31fb

Browse files
committed
-Wno-error should only be enabled for gcc compilers, it seems
1 parent e9f37a7 commit 29a31fb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/backend/tcop/Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Makefile for tcop
55
#
66
# IDENTIFICATION
7-
# $Header: /cvsroot/pgsql/src/backend/tcop/Makefile,v 1.11 1997/04/04 10:40:34 scrappy Exp $
7+
# $Header: /cvsroot/pgsql/src/backend/tcop/Makefile,v 1.12 1997/04/24 13:25:07 scrappy Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -15,7 +15,11 @@ 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
1923

2024
OBJS= aclchk.o dest.o fastpath.o postgres.o pquery.o utility.o variable.o
2125

0 commit comments

Comments
 (0)