[MPlayer-cvslog] r23251 - trunk/TOOLS/checktree.sh
ivo
subversion at mplayerhq.hu
Mon May 7 19:17:10 CEST 2007
Author: ivo
Date: Mon May 7 19:17:10 2007
New Revision: 23251
Log:
do not run stupid code checks if chfilelist is empty
(i.e. it is run on non-c code only)
Modified:
trunk/TOOLS/checktree.sh
Modified: trunk/TOOLS/checktree.sh
==============================================================================
--- trunk/TOOLS/checktree.sh (original)
+++ trunk/TOOLS/checktree.sh Mon May 7 19:17:10 2007
@@ -303,6 +303,7 @@ if [ "$_stupid" = "yes" ]; then
# 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 @@ if [ "$_stupid" = "yes" ]; then
printhead "--> usage of -0"
grep $_grepopts "[a-zA-Z0-9)]\+[ ]*-[ ]*0[^.0-9xa-fA-F_]" $chfilelist
+ fi
fi
# -----------------------------------------------------------------------------
More information about the MPlayer-cvslog
mailing list