Module Name: src Committed By: rillig Date: Sun Aug 15 13:32:44 UTC 2021
Modified Files: src/crypto/external/bsd/openssl/lib/libcrypto: bn.inc Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/crypto/external/bsd/openssl/lib/libcrypto/bn.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/crypto/external/bsd/openssl/lib/libcrypto/bn.inc diff -u src/crypto/external/bsd/openssl/lib/libcrypto/bn.inc:1.5 src/crypto/external/bsd/openssl/lib/libcrypto/bn.inc:1.6 --- src/crypto/external/bsd/openssl/lib/libcrypto/bn.inc:1.5 Fri Feb 9 13:35:45 2018 +++ src/crypto/external/bsd/openssl/lib/libcrypto/bn.inc Sun Aug 15 13:32:43 2021 @@ -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 @@ SRCS += ${BN_SRCS} .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'