mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-04-28 02:34:40 +00:00
Add -f -r flags to find-unused-errs
Reviewed-by: Andy Polyakov <appro@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3230)
This commit is contained in:
parent
7db0289ea7
commit
cad3f9dacb
@ -13,8 +13,27 @@
|
||||
export X1=/tmp/f.1.$$
|
||||
export X2=/tmp/f.2.$$
|
||||
|
||||
case "$1" in
|
||||
-f)
|
||||
PAT='_F_'
|
||||
echo Functions only
|
||||
;;
|
||||
-[er])
|
||||
PAT='_R_'
|
||||
echo Reason codes only
|
||||
;;
|
||||
"")
|
||||
PAT='_[FR]_'
|
||||
echo Function and reasons
|
||||
;;
|
||||
*)
|
||||
echo "Usage error; one of -[efr] required."
|
||||
exit 1;
|
||||
;;
|
||||
esac
|
||||
|
||||
cd include/openssl || exit 1
|
||||
grep '_[RF]_' * | awk '{print $3;}' | sort -u >$X1
|
||||
grep "$PAT" * | grep -v ERR_FATAL_ERROR | awk '{print $3;}' | sort -u >$X1
|
||||
cd ../..
|
||||
|
||||
for F in `cat $X1` ; do
|
||||
|
Loading…
x
Reference in New Issue
Block a user