summaryrefslogtreecommitdiff
authorMichael Niedermayer <michaelni@gmx.at>2013-05-23 14:00:10 (GMT)
committer Michael Niedermayer <michaelni@gmx.at>2013-05-23 17:11:28 (GMT)
commit0fb7fef8794141a6a3bbca039dd39d70be00b9ec (patch)
treed1bbfdd8634c847e524ff757ebcda8f4ebb6b30b
parentd51dfc7ec4f73af1b2391daf7db61942352814f7 (diff)
downloadffmpeg-0fb7fef8794141a6a3bbca039dd39d70be00b9ec.zip
ffmpeg-0fb7fef8794141a6a3bbca039dd39d70be00b9ec.tar.gz
ffmpeg-0fb7fef8794141a6a3bbca039dd39d70be00b9ec.tar.bz2
tools/patcheck: fix misdetection with stuff like const_names
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat
-rwxr-xr-xtools/patcheck2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/patcheck b/tools/patcheck
index 924a90d..59a16ef 100755
--- a/tools/patcheck
+++ b/tools/patcheck
@@ -50,7 +50,7 @@ hiegrep2 '\b_[a-zA-Z0-9_]{1,}' '__(asm|attribute)([^a-zA-Z0-9]|$)' 'reserved ide
hiegrep '//[-/<\* ]*$' 'empty comment' $*
hiegrep '/\*[-<\* ]*\*/' 'empty comment' $*
hiegrep 'for *\( *'"$ERE_PRITYP"' ' 'not gcc 2.95 compatible' $*
-hiegrep '(static|inline|const) *\1' 'duplicate word' $*
+hiegrep '(static|inline|const) *\1[^_a-zA-Z]' 'duplicate word' $*
hiegrep 'INIT_VLC_USE_STATIC' 'forbidden ancient vlc type' $*
hiegrep '=[-+\*\&] ' 'looks like compound assignment' $*
hiegrep2 '/\*\* *[a-zA-Z0-9].*' '\*/' 'Inconsistently formatted doxygen comment' $*