aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2014-08-29 00:32:07 +0200
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2014-08-29 18:57:25 +0200
commitbe4aac302b0cbeab6da9e3192318aad7379a6428 (patch)
tree109e94b03dadfd6c6b4574c11b5e9f74f580bc6e /tools
parent9b8eedd736ea443c4829baaca1ede4e146ebc024 (diff)
downloadffmpeg-be4aac302b0cbeab6da9e3192318aad7379a6428.tar.gz
patcheck: check for pointer arrays that are not const.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/patcheck1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/patcheck b/tools/patcheck
index 3342c6a429..cbdbf8d34a 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' $*