Do not pass -Werror if building with gcc 3, for asn1.h and bio.h cause
authormiod <miod@openbsd.org>
Wed, 22 May 2024 11:49:36 +0000 (11:49 +0000)
committermiod <miod@openbsd.org>
Wed, 22 May 2024 11:49:36 +0000 (11:49 +0000)
(admittedly bogus) warnings with gcc 3.

usr.bin/ssh/Makefile.inc

index ae7814a..4864179 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.inc,v 1.90 2024/05/17 00:30:23 djm Exp $
+#      $OpenBSD: Makefile.inc,v 1.91 2024/05/22 11:49:36 miod Exp $
 
 .include <bsd.own.mk>
 
@@ -19,13 +19,14 @@ CDIAGFLAGS+=        -Wunused
 CDIAGFLAGS+=   -Wno-unused-parameter # Lots of these in protocol handlers.
 .if ${COMPILER_VERSION:L} == "clang"
 CDIAGFLAGS+=   -Widiomatic-parentheses -Wparentheses
+CDIAGFLAGS+=   -Werror
 .endif
 .if ${COMPILER_VERSION:L} != "gcc3"
 CDIAGFLAGS+=   -Wstrict-aliasing=2
 CDIAGFLAGS+=   -Wold-style-definition
+CDIAGFLAGS+=   -Werror
 .endif
 
-CDIAGFLAGS+=   -Werror
 #CDIAGFLAGS+=  -fno-common
 #DEBUG=-g
 #INSTALL_STRIP=