Change COMPILER_VERSION tests which limited additional warnings to gcc4
authorjsg <jsg@openbsd.org>
Mon, 17 Apr 2017 11:02:31 +0000 (11:02 +0000)
committerjsg <jsg@openbsd.org>
Mon, 17 Apr 2017 11:02:31 +0000 (11:02 +0000)
to instead skip them on gcc3 as clang can handle -Wpointer-sign and
-Wold-style-definition.

regress/usr.bin/ssh/misc/kexfuzz/Makefile
regress/usr.bin/ssh/unittests/Makefile.inc
usr.bin/ssh/Makefile.inc

index 3018b63..d0aca8d 100644 (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
index 74f7fe7..a56294b 100644 (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 $
 
 REGRESS_FAIL_EARLY?=   yes
 
@@ -50,7 +50,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
index f14f280..e7c88f4 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.inc,v 1.50 2015/07/01 23:10:47 djm Exp $
+#      $OpenBSD: Makefile.inc,v 1.51 2017/04/17 11:02:31 jsg Exp $
 
 .include <bsd.own.mk>
 
@@ -26,7 +26,7 @@ CDIAGFLAGS+=  -Wswitch
 CDIAGFLAGS+=   -Wtrigraphs
 CDIAGFLAGS+=   -Wuninitialized
 CDIAGFLAGS+=   -Wunused
-.if ${COMPILER_VERSION} == "gcc4"
+.if ${COMPILER_VERSION:L} != "gcc3"
 CDIAGFLAGS+=   -Wold-style-definition
 .endif
 CDIAGFLAGS+=   -Wno-unused-parameter # Not clean for this yet