diff options
author | Ahmad Fatoum <ahmad@a3f.at> | 2017-08-08 08:50:58 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-08-08 15:07:26 +0000 |
commit | 6d8f3ddc7c0147f0a316b53ce3c5f852d5eb5921 (patch) | |
tree | 7c062069e2b92860b11c651e98507c92602ee7bd /tools/checkAPIs.pl | |
parent | aae0f13b7e6223afe589e63e3fb77b8e95b00219 (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/checkAPIs.pl')
-rwxr-xr-x | tools/checkAPIs.pl | 3 |
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; |