diff options
author | Evan Huus <eapache@gmail.com> | 2014-07-15 21:56:55 -0400 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2014-07-16 01:58:03 +0000 |
commit | 1387f54c58f82d920c6e5475029b5b45c7518060 (patch) | |
tree | 77b8b74dc79d3c761bb18bee0cdd44f90f9bc8bf /tools | |
parent | d8cff57ef342b909f128244f3ab5e5debcec4988 (diff) |
Check for __func__ in checkAPIs.pl
Change-Id: I649c69cbf545a8de32d9142c1156db6adb076b63
Reviewed-on: https://code.wireshark.org/review/3078
Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/checkAPIs.pl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/checkAPIs.pl b/tools/checkAPIs.pl index 03420cfa98..992d8e3991 100755 --- a/tools/checkAPIs.pl +++ b/tools/checkAPIs.pl @@ -2114,6 +2114,11 @@ while ($_ = $ARGV[0]) print STDERR "Error: Found %hh in " .$filename."\n"; $errorCount++; } + if ($fileContents =~ m{ __func__ }xo) + { + print STDERR "Error: __func__ is not portable, use G_STRFUNC\n"; + $errorCount++; + } if (($fileContents =~ m{ \$Id .* \$ }xo)) { print STDERR "Warning: ".$filename." does have an SVN Id tag. Please remove !\n"; |