Set -Wno-error on gcc 2.7. The warning-error on cexp.y is bogus (it is a
warning for never-executed code that egcs properly does not issue). Unfortunately, that particular warning cannot be switched off individually.
This commit is contained in:
parent
3eefada6a0
commit
9b1c81b5b2
@ -1,11 +1,16 @@
|
||||
# from: @{#}Makefile 6.4 (Berkeley) 2/21/91
|
||||
# $NetBSD: Makefile,v 1.7 1998/08/16 22:09:02 tv Exp $
|
||||
# $NetBSD: Makefile,v 1.8 1998/10/04 18:43:30 tv Exp $
|
||||
|
||||
HAVE_GCC28!= ${CXX} --version | egrep "^(2\.8|egcs)" ; echo
|
||||
|
||||
PROG= cpp
|
||||
BINDIR= /usr/libexec
|
||||
SRCS= cccp.c cexp.y obstack.c prefix.c version.c
|
||||
CPPFLAGS+= -DGCC_INCLUDE_DIR=\"\" \
|
||||
-DGPLUSPLUS_INCLUDE_DIR=\"/usr/include/g++\"
|
||||
.if empty(HAVE_GCC28)
|
||||
CWARNFLAGS+= -Wno-error
|
||||
.endif
|
||||
|
||||
LINKS= /usr/bin/cpp /usr/bin/gcpp
|
||||
FILES= usr.bin.cpp.sh
|
||||
|
Loading…
Reference in New Issue
Block a user