Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/openssl/lib/libdes libdes: suppress some...
details:   https://anonhg.NetBSD.org/src/rev/60b12c2b1957
branches:  trunk
changeset: 985260:60b12c2b1957
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Aug 15 12:58:01 2021 +0000
description:
libdes: suppress some selected lint warnings
The type widths are handled carefully, so even if there is some
conversion from 64-bit long to uint32_t, no value bits get lost.
The fallthrough case statements are a variant of Duff's Device.
The bitwise '>>' on signed value is actually on a value of type
'unsigned char', and since all platforms supported by lint have
sizeof(int) == 4, the behavior is well defined.
diffstat:
 crypto/external/bsd/openssl/lib/libdes/Makefile |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 88d4433f771a -r 60b12c2b1957 crypto/external/bsd/openssl/lib/libdes/Makefile
--- a/crypto/external/bsd/openssl/lib/libdes/Makefile   Sun Aug 15 12:41:40 2021 +0000
+++ b/crypto/external/bsd/openssl/lib/libdes/Makefile   Sun Aug 15 12:58:01 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.3 2018/03/15 18:40:16 christos Exp $
+#      $NetBSD: Makefile,v 1.4 2021/08/15 12:58:01 rillig Exp $
 
 .include <bsd.own.mk>
 
@@ -16,6 +16,9 @@
 
 CPPFLAGS+=-DOPENSSL_VERSION_PTEXT="\" based on OpenSSL 0.9.6j 10 Apr 2003\""
 CPPFLAGS+=-DOPENSSL_cleanse=bzero -DOPENSSL_malloc=malloc
+LINTFLAGS+=    -X 117  # bitwise '>>' on signed value possibly nonportable
+LINTFLAGS+=    -X 132  # conversion from 'long' to 'unsigned int'
+LINTFLAGS+=    -X 220  # fallthrough on case statement
 
 INCS=  des.h
 INCSDIR=/usr/include
Home |
Main Index |
Thread Index |
Old Index