diff options
author | Benoit Fouet <benoit.fouet@free.fr> | 2010-06-11 12:58:40 +0400 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2010-06-11 12:58:40 +0400 |
commit | b6c265ec2bfc37a34b58a80af38b876c2500d0a8 (patch) | |
tree | eca5549b9e8ec7922f8aa218c4baa16f43e644b1 /tools/patcheck | |
parent | c404e783b9a07d0f512298eaf24b76a6b31583f7 (diff) |
Improve rule for possibly never read variables.
Originally committed as revision 23578 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tools/patcheck')
-rwxr-xr-x | tools/patcheck | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/patcheck b/tools/patcheck index a6923c4c36..62ad0868ea 100755 --- a/tools/patcheck +++ b/tools/patcheck @@ -112,7 +112,7 @@ for i in \ ; do echo $i | grep '^NULL$' && continue egrep $i' *(\+|-|\*|/|\||&|%|)=[^=]' $* >/dev/null || echo "possibly never written:"$i >> $TMP - egrep '(=|\(|return).*'$i'[^=]*$' $* >/dev/null || echo "possibly never read :"$i >> $TMP + egrep '(=|\(|return).*'$i'(==|[^=])*$' $* >/dev/null || echo "possibly never read :"$i >> $TMP egrep -o $i' *((\+|-|\*|/|\||&|%|)=[^=]|\+\+|--) *(0x|)[0-9]*(;|)' $* |\ egrep -v $i' *= *(0x|)[0-9]{1,};'>/dev/null || echo "possibly constant :"$i >> $TMP done |