aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2017-08-08 08:50:58 -0400
committerMichael Mann <mmann78@netscape.net>2017-08-08 15:07:26 +0000
commit6d8f3ddc7c0147f0a316b53ce3c5f852d5eb5921 (patch)
tree7c062069e2b92860b11c651e98507c92602ee7bd /tools
parentaae0f13b7e6223afe589e63e3fb77b8e95b00219 (diff)
checkAPIs.pl: Don't check prefs.[ch] for duplicate registered variables
Change-Id: I389aa31db4da11b2b1e8d009a4cfeca03b587f45 Reviewed-on: https://code.wireshark.org/review/23014 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Ahmad Fatoum <ahmad@a3f.at> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/checkAPIs.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/checkAPIs.pl b/tools/checkAPIs.pl
index 6a9ce159a3..ec007bddf0 100755
--- a/tools/checkAPIs.pl
+++ b/tools/checkAPIs.pl
@@ -1882,6 +1882,9 @@ sub check_pref_var_dupes($$)
my ($filecontentsref, $filename) = @_;
my $errorcount = 0;
+ # Avoid flagging the actual prototypes
+ return 0 if $filename =~ /prefs\.[ch]$/;
+
# remove macro lines
my $filecontents = ${$filecontentsref};
$filecontents =~ s { ^\s*\#.*$} []xogm;