1
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 06:03:45 +01:00

do not run stupid code checks if chfilelist is empty

(i.e. it is run on non-c code only)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23251 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ivo 2007-05-07 17:17:10 +00:00
parent 0600d0b117
commit 10a128ac7b

View File

@ -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
# -----------------------------------------------------------------------------