summaryrefslogtreecommitdiff
path: root/regress/unittests/Makefile.inc
diff options
context:
space:
mode:
authorjsg@openbsd.org <jsg@openbsd.org>2017-04-17 11:02:31 +0000
committerDamien Miller <djm@mindrot.org>2017-04-28 13:28:49 +1000
commite0194b471efe7d3daedc9cc66686cb1ab69d3be8 (patch)
tree99f3e45404516905147d45c2deb9be10ed00833e /regress/unittests/Makefile.inc
parent6830be90e71f46bcd182a9202b151eaf2b299434 (diff)
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
Diffstat (limited to 'regress/unittests/Makefile.inc')
-rw-r--r--regress/unittests/Makefile.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/unittests/Makefile.inc b/regress/unittests/Makefile.inc
index 3d9eaba5c..00c9dd191 100644
--- a/regress/unittests/Makefile.inc
+++ b/regress/unittests/Makefile.inc
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile.inc,v 1.9 2016/11/01 13:43:27 tb Exp $ 1# $OpenBSD: Makefile.inc,v 1.10 2017/04/17 11:02:31 jsg Exp $
2 2
3.include <bsd.own.mk> 3.include <bsd.own.mk>
4.include <bsd.obj.mk> 4.include <bsd.obj.mk>
@@ -30,7 +30,7 @@ CDIAGFLAGS+= -Wswitch
30CDIAGFLAGS+= -Wtrigraphs 30CDIAGFLAGS+= -Wtrigraphs
31CDIAGFLAGS+= -Wuninitialized 31CDIAGFLAGS+= -Wuninitialized
32CDIAGFLAGS+= -Wunused 32CDIAGFLAGS+= -Wunused
33.if ${COMPILER_VERSION} == "gcc4" 33.if ${COMPILER_VERSION:L} != "gcc3"
34CDIAGFLAGS+= -Wpointer-sign 34CDIAGFLAGS+= -Wpointer-sign
35CDIAGFLAGS+= -Wold-style-definition 35CDIAGFLAGS+= -Wold-style-definition
36.endif 36.endif