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

oldstable
Francois Gouget 2007-02-09 12:22:45 +01:00 committed by Alexandre Julliard
parent 65563fd0d0
commit 30131979cc
1 changed files with 2 additions and 8 deletions

View File

@ -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)$/))