=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: winebuild: Avoid dead code in BuildCallFrom16Core (Coverity).
Alexandre Julliard
julliard at winehq.org
Mon Nov 28 14:00:02 CST 2011
Module: wine
Branch: master
Commit: 355a0aef8b6a728784faa078b6c7beb1d6af024c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=355a0aef8b6a728784faa078b6c7beb1d6af024c
Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date: Sat Nov 26 10:10:16 2011 +0100
winebuild: Avoid dead code in BuildCallFrom16Core (Coverity).
---
tools/winebuild/relay.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/tools/winebuild/relay.c b/tools/winebuild/relay.c
index 4fa256f..cc7dd37 100644
--- a/tools/winebuild/relay.c
+++ b/tools/winebuild/relay.c
@@ -224,6 +224,7 @@ static void BuildCallFrom16Core( int reg_func, int thunk )
output( "\t.byte 0x66\n" );
output( "\tlret\n" );
+ output_function_size( "__wine_call_from_16_thunk" );
return;
}
@@ -333,6 +334,8 @@ static void BuildCallFrom16Core( int reg_func, int thunk )
output( "\tpopl %%ds\n" );
output( "\tpopfl\n" );
output( "\tlret\n" );
+
+ output_function_size( "__wine_call_from_16_regs" );
}
else
{
@@ -352,10 +355,9 @@ static void BuildCallFrom16Core( int reg_func, int thunk )
/* Return to return stub which will return to caller */
output( "\tlret $12\n" );
+
+ output_function_size( "__wine_call_from_16" );
}
- if (thunk) output_function_size( "__wine_call_from_16_thunk" );
- else if (reg_func) output_function_size( "__wine_call_from_16_regs" );
- else output_function_size( "__wine_call_from_16" );
}
More information about the wine-cvs
mailing list