upstream commit

Change COMPILER_VERSION tests which limited additional
warnings to gcc4 to instead skip them on gcc3 as clang can handle
-Wpointer-sign and -Wold-style-definition.

Upstream-Regress-ID: e48d7dc13e48d9334b8195ef884dfbc51316012f
This commit is contained in:
jsg@openbsd.org 2017-04-17 11:02:31 +00:00 committed by Damien Miller
parent 6830be90e7
commit e0194b471e
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.1 2016/03/04 02:30:37 djm Exp $
# $OpenBSD: Makefile,v 1.2 2017/04/17 11:02:31 jsg Exp $
.include <bsd.own.mk>
.include <bsd.obj.mk>
@ -49,7 +49,7 @@ CDIAGFLAGS+= -Wswitch
CDIAGFLAGS+= -Wtrigraphs
CDIAGFLAGS+= -Wuninitialized
CDIAGFLAGS+= -Wunused
.if ${COMPILER_VERSION} == "gcc4"
.if ${COMPILER_VERSION:L} != "gcc3"
CDIAGFLAGS+= -Wpointer-sign
CDIAGFLAGS+= -Wold-style-definition
.endif

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile.inc,v 1.9 2016/11/01 13:43:27 tb Exp $
# $OpenBSD: Makefile.inc,v 1.10 2017/04/17 11:02:31 jsg Exp $
.include <bsd.own.mk>
.include <bsd.obj.mk>
@ -30,7 +30,7 @@ CDIAGFLAGS+= -Wswitch
CDIAGFLAGS+= -Wtrigraphs
CDIAGFLAGS+= -Wuninitialized
CDIAGFLAGS+= -Wunused
.if ${COMPILER_VERSION} == "gcc4"
.if ${COMPILER_VERSION:L} != "gcc3"
CDIAGFLAGS+= -Wpointer-sign
CDIAGFLAGS+= -Wold-style-definition
.endif