aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2011-11-24 09:24:59 +0100
committerSebastian Hahn <sebastian@torproject.org>2011-11-24 09:29:45 +0100
commit11221d0f17bf3ea6039249ad8b06b3a1afd6291d (patch)
tree11ec8561e13485c154bf8a7a292e00ce7151dcd5 /contrib
parentf77f9bddb8bf0dd6e9c3e0d94269aa23f459a272 (diff)
downloadtor-11221d0f17bf3ea6039249ad8b06b3a1afd6291d.tar
tor-11221d0f17bf3ea6039249ad8b06b3a1afd6291d.tar.gz
Update check-spaces to remove false positive for timercmp macro
The timercmp macro uses triggers a "space between function name and opening parentheses" warning for the check spaces script. Work around this by simply disabling the check for all "functions" named 'op()'.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/checkSpace.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/checkSpace.pl b/contrib/checkSpace.pl
index 6eb32e562..a18df99b1 100755
--- a/contrib/checkSpace.pl
+++ b/contrib/checkSpace.pl
@@ -97,7 +97,7 @@ for $fn (@ARGV) {
if ($1 ne "if" and $1 ne "while" and $1 ne "for" and
$1 ne "switch" and $1 ne "return" and $1 ne "int" and
$1 ne "elsif" and $1 ne "WINAPI" and $2 ne "WINAPI" and
- $1 ne "void" and $1 ne "__attribute__") {
+ $1 ne "void" and $1 ne "__attribute__" and $1 ne "op") {
print " fn ():$fn:$.\n";
}
}