[FFmpeg-cvslog] r23578 - trunk/tools/patcheck

benoit subversion
Fri Jun 11 10:58:40 CEST 2010


Author: benoit
Date: Fri Jun 11 10:58:40 2010
New Revision: 23578

Log:
Improve rule for possibly never read variables.

Modified:
   trunk/tools/patcheck

Modified: trunk/tools/patcheck
==============================================================================
--- trunk/tools/patcheck	Fri Jun 11 10:49:15 2010	(r23577)
+++ trunk/tools/patcheck	Fri Jun 11 10:58:40 2010	(r23578)
@@ -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



More information about the ffmpeg-cvslog mailing list