Mercurial > mplayer.hg
changeset 23233:1efd3700f2e3
do not run stupid code checks if chfilelist is empty
(i.e. it is run on non-c code only)
author | ivo |
---|---|
date | Mon, 07 May 2007 17:17:10 +0000 |
parents | c5ac43d53bb1 |
children | 6384d4d97bb0 |
files | TOOLS/checktree.sh |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/TOOLS/checktree.sh Mon May 07 17:02:42 2007 +0000 +++ b/TOOLS/checktree.sh Mon May 07 17:17:10 2007 +0000 @@ -303,6 +303,7 @@ # avoid false-positives in xpm files, docs, etc, only check .c and .h files chfilelist=`echo $filelist | tr ' ' '\n' | grep "[\.][ch]$"` + if [ -n "$chfilelist" ]; then for i in calloc malloc realloc memalign av_malloc av_mallocz faad_malloc \ lzo_malloc safe_malloc mpeg2_malloc _ogg_malloc; do printhead "--> casting of void* $i()" @@ -337,6 +338,7 @@ printhead "--> usage of -0" grep $_grepopts "[a-zA-Z0-9)]\+[ ]*-[ ]*0[^.0-9xa-fA-F_]" $chfilelist + fi fi # -----------------------------------------------------------------------------