winapi_check: '-register' is compatible with stdcall. So remove this obsolete warning.

Francois Gouget fgouget at free.fr
Fri Feb 9 05:22:45 CST 2007


---
 tools/winapi/winapi_local.pm |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/tools/winapi/winapi_local.pm b/tools/winapi/winapi_local.pm
index 2281484..01c8ab9 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)$/))
-- 
1.4.4.3




More information about the wine-patches mailing list