From aeac25c2f26faebdbee9d841a3d05219f83f6d4a Mon Sep 17 00:00:00 2001 From: miod Date: Wed, 22 May 2024 11:49:36 +0000 Subject: [PATCH] Do not pass -Werror if building with gcc 3, for asn1.h and bio.h cause (admittedly bogus) warnings with gcc 3. --- usr.bin/ssh/Makefile.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.bin/ssh/Makefile.inc b/usr.bin/ssh/Makefile.inc index ae7814a282c..4864179048c 100644 --- a/usr.bin/ssh/Makefile.inc +++ b/usr.bin/ssh/Makefile.inc @@ -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 @@ -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= -- 2.20.1