Gerald Pfeifer : widl: Remove variable size which is not really used from print_phase_basetype.
Alexandre Julliard
julliard at winehq.org
Mon Apr 26 13:59:24 CDT 2010
Module: wine
Branch: master
Commit: ea6590af160dc4227345d8f9112a8cb3caeda62a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ea6590af160dc4227345d8f9112a8cb3caeda62a
Author: Gerald Pfeifer <gerald at pfeifer.com>
Date: Fri Apr 23 20:46:08 2010 +0200
widl: Remove variable size which is not really used from print_phase_basetype.
---
tools/widl/typegen.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c
index 9e85fa0..694e98d 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -3279,7 +3279,6 @@ void print_phase_basetype(FILE *file, int indent, const char *local_var_prefix,
const char *varname)
{
type_t *type = var->type;
- unsigned int size;
unsigned int alignment = 0;
/* no work to do for other phases, buffer sizing is done elsewhere */
@@ -3317,14 +3316,12 @@ void print_phase_basetype(FILE *file, int indent, const char *local_var_prefix,
case RPC_FC_CHAR:
case RPC_FC_SMALL:
case RPC_FC_USMALL:
- size = 1;
alignment = 1;
break;
case RPC_FC_WCHAR:
case RPC_FC_USHORT:
case RPC_FC_SHORT:
- size = 2;
alignment = 2;
break;
@@ -3335,13 +3332,11 @@ void print_phase_basetype(FILE *file, int indent, const char *local_var_prefix,
/* pointer_size must be 4 if we got here in these two cases */
case RPC_FC_INT3264:
case RPC_FC_UINT3264:
- size = 4;
alignment = 4;
break;
case RPC_FC_HYPER:
case RPC_FC_DOUBLE:
- size = 8;
alignment = 8;
break;
@@ -3353,7 +3348,6 @@ void print_phase_basetype(FILE *file, int indent, const char *local_var_prefix,
default:
error("print_phase_basetype: Unsupported type: %s (0x%02x, ptr_level: 0)\n",
var->name, get_basic_fc(ref));
- size = 0;
}
if (phase == PHASE_MARSHAL && alignment > 1)
More information about the wine-cvs
mailing list