[FFmpeg-cvslog] patcheck: check for pointer arrays that are not const.

Reimar Döffinger git at videolan.org
Fri Aug 29 18:59:01 CEST 2014


ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Fri Aug 29 00:32:07 2014 +0200| [be4aac302b0cbeab6da9e3192318aad7379a6428] | committer: Reimar Döffinger

patcheck: check for pointer arrays that are not const.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=be4aac302b0cbeab6da9e3192318aad7379a6428
---

 tools/patcheck |    1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/patcheck b/tools/patcheck
index 3342c6a..cbdbf8d 100755
--- a/tools/patcheck
+++ b/tools/patcheck
@@ -42,6 +42,7 @@ hiegrep2(){
     cat $TMP
 }
 
+hiegrep 'static[^(]*\*[a-zA-Z_]*\[' 'pointer array is not const' $*
 hiegrep '[[:space:]]$'    'trailing whitespace' $*
 hiegrep "$(echo x | tr 'x' '\t')"         'tabs' $*
 #hiegrep ':\+$'          'Empty lines' $*



More information about the ffmpeg-cvslog mailing list