From 30131979cc1d49b423e10294626ace7122b67b2d Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Fri, 9 Feb 2007 12:22:45 +0100 Subject: [PATCH] winapi_check: '-register' is compatible with stdcall. So remove this obsolete warning. --- tools/winapi/winapi_local.pm | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tools/winapi/winapi_local.pm b/tools/winapi/winapi_local.pm index 228148423cb..01c8ab96230 100644 --- a/tools/winapi/winapi_local.pm +++ b/tools/winapi/winapi_local.pm @@ -123,14 +123,8 @@ sub _check_function($$$$$$) { $declared_calling_convention = $1; } - if ($declared_register) - { - if ($implemented_calling_convention eq "stdcall") - { - $output->write("-register functions should not be implemented as stdcall\n"); - } - } - elsif($implemented_calling_convention ne $declared_calling_convention && + if(!$declared_register && + $implemented_calling_convention ne $declared_calling_convention && $implemented_calling_convention ne "asm" && !($declared_calling_convention =~ /^pascal/ && $forbidden_return_type) && !($implemented_calling_convention =~ /^(?:cdecl|varargs)$/ && $declared_calling_convention =~ /^(?:cdecl|varargs)$/))