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/libcrypto libcrypto: suppres...



details:   https://anonhg.NetBSD.org/src/rev/a2e26c617050
branches:  trunk
changeset: 1022949:a2e26c617050
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Aug 15 13:32:43 2021 +0000

description:
libcrypto: suppress irrelevant lint warnings

The conversion from 'unsigned long' to 'int' in line 805 is due to the
laziness of declaring a carry flag as BN_ULONG, to save an extra
line of declaration.

The constants in conditional context come from the macro 'bn_cp_32'.

The unconst cast is used for initializing local BIGNUM constants; the
struct member is declared as non-const pointer.

diffstat:

 crypto/external/bsd/openssl/lib/libcrypto/bn.inc |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r b60426486035 -r a2e26c617050 crypto/external/bsd/openssl/lib/libcrypto/bn.inc
--- a/crypto/external/bsd/openssl/lib/libcrypto/bn.inc  Sun Aug 15 13:08:19 2021 +0000
+++ b/crypto/external/bsd/openssl/lib/libcrypto/bn.inc  Sun Aug 15 13:32:43 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bn.inc,v 1.5 2018/02/09 13:35:45 christos Exp $
+#      $NetBSD: bn.inc,v 1.6 2021/08/15 13:32:43 rillig Exp $
 #
 #      @(#) Copyright (c) 1995 Simon J. Gerraty
 #
@@ -47,3 +47,7 @@
 .for cryptosrc in ${BN_SRCS}
 CPPFLAGS.${cryptosrc} = -I${OPENSSLSRC}/crypto/bn ${BNCPPFLAGS}
 .endfor
+
+LINTFLAGS.bn_nist.c+=  -X 132  # conversion from 'unsigned long' to 'int'
+LINTFLAGS.bn_nist.c+=  -X 161  # constant in conditional context
+LINTFLAGS.bn_nist.c+=  -X 275  # cast discards 'const' from type 'pointer to const unsigned long'



Home | Main Index | Thread Index | Old Index