diff options
author | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2020-04-15 18:49:26 +0300 |
---|---|---|
committer | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2020-04-15 18:49:26 +0300 |
commit | 389a25694b85750d7813d8fbe0ae8a4483889214 (patch) | |
tree | 140c999b49eaf1bc91306577bdcda34f20c6f311 /devel | |
parent | d1f44454d6831aade6c8ee478da2da767a75dc63 (diff) | |
download | gnutls-389a25694b85750d7813d8fbe0ae8a4483889214.tar.gz |
gitlab CI: when calling cppcheck ignore lib/nettle/ecc rather than lib/nettle/curve448
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Diffstat (limited to 'devel')
-rwxr-xr-x | devel/import-ecc-from-nettle.sh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/devel/import-ecc-from-nettle.sh b/devel/import-ecc-from-nettle.sh index 99d56c5c17..9ed40f077a 100755 --- a/devel/import-ecc-from-nettle.sh +++ b/devel/import-ecc-from-nettle.sh @@ -191,8 +191,16 @@ for f in $IMPORTS; do # Suppress whitespace errors in 'make syntax-check'. sed 's/ * / /g' $dst > $dst-t && mv $dst-t $dst ;; - */ecc-random.c|*/gostdsa-sign.c) - sed 's/"nettle-internal\.h"/"nettle-alloca.h"/' $dst > $dst-t && mv $dst-t $dst + */ecc-random.c ) + sed \ + -e 's/"nettle-internal\.h"/"nettle-alloca.h"/' \ + -e 's/^ & (mpn_sub_n/ \& (int)(mpn_sub_n/' \ + $dst > $dst-t && mv $dst-t $dst + ;; + */gostdsa-sign.c) + sed \ + -e 's/"nettle-internal\.h"/"nettle-alloca.h"/' \ + $dst > $dst-t && mv $dst-t $dst ;; esac else |