From: miod Date: Wed, 22 May 2024 11:49:36 +0000 (+0000) Subject: Do not pass -Werror if building with gcc 3, for asn1.h and bio.h cause X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=aeac25c2f26faebdbee9d841a3d05219f83f6d4a;p=openbsd Do not pass -Werror if building with gcc 3, for asn1.h and bio.h cause (admittedly bogus) warnings with gcc 3. --- 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=