Module Name: src Committed By: christos Date: Tue May 23 12:05:10 UTC 2023
Modified Files: src/crypto: Makefile.openssl Log Message: centralize the warnings, try to fix clang To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/crypto/Makefile.openssl Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/crypto/Makefile.openssl diff -u src/crypto/Makefile.openssl:1.15 src/crypto/Makefile.openssl:1.16 --- src/crypto/Makefile.openssl:1.15 Thu May 18 08:01:58 2023 +++ src/crypto/Makefile.openssl Tue May 23 08:05:10 2023 @@ -1,15 +1,32 @@ -# $NetBSD: Makefile.openssl,v 1.15 2023/05/18 12:01:58 martin Exp $ +# $NetBSD: Makefile.openssl,v 1.16 2023/05/23 12:05:10 christos Exp $ .ifndef _MAKEFILE_OPENSSL_INCLUDED _MAKEFILE_OPENSSL_INCLUDED=1 .include <bsd.own.mk> WARNS=3 + # would require changing a lot of code -COPTS+= -Wno-error=cast-qual -Wno-error=discarded-qualifiers +COPTS+= -Wno-error=cast-qual COPTS+= -Wno-error=missing-field-initializers -Wno-error=char-subscripts COPTS+= -Wno-error=shadow +CWARNFLAGS.gcc+= -Wno-error=discarded-qualifiers +CWARNFLAGS.clang+= -Wno-error=ignored-qualifiers + +# XXX: re-examine the below +CWARNFLAGS.clang+= -Wno-empty-body -Wno-unused-value -Wno-parentheses +CWARNFLAGS.clang+= -Wno-implicit-int-float-conversion +# XXX: This warning seems to trigger incorrectly +CWARNFLAGS.clang+= -Wno-atomic-alignment + +LINTFLAGS+= -X 161 # constant in conditional context +LINTFLAGS+= -X 129 # expression has null effect +LINTFLAGS+= -X 117 # bitwise '>>' on signed value possibly nonportable +LINTFLAGS+= -X 231 # argument '%s' unused in function '%s' +LINTFLAGS+= -X 220 # fallthrough on case statement +LINTFLAGS+= -X 118 # semantics of '%s' change in ANSI C; use explicit cast + .if ${HAVE_OPENSSL} <= 11 OSSL_ENGINESDIR=/usr/lib/openssl