From 6d8f3ddc7c0147f0a316b53ce3c5f852d5eb5921 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Tue, 8 Aug 2017 08:50:58 -0400 Subject: 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 Reviewed-by: Ahmad Fatoum Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann --- tools/checkAPIs.pl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/checkAPIs.pl') 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; -- cgit v1.2.3