[PATCH] silence two gcc warnings
Marcus Meissner
marcus at jet.franken.de
Mon Sep 17 11:00:54 CDT 2007
GCC 4.3 is warning about maybe uninitialized. Looking at
the codepaths this is not possible, but quieten it anyway.
Ciao, Marcus
---
tools/widl/typegen.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c
index f585c1f..aa6d3bf 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -866,7 +866,7 @@ static void write_user_tfs(FILE *file, t
{
unsigned int start, absoff, flags;
unsigned int align = 0, ualign = 0;
- const char *name;
+ const char *name = NULL;
type_t *utype = get_user_type(type, &name);
size_t usize = type_memsize(utype, &ualign);
size_t size = type_memsize(type, &align);
@@ -2151,7 +2151,7 @@ static unsigned int get_required_buffer_
*alignment = 0;
if (is_user_type(type))
{
- const char *uname;
+ const char *uname = NULL;
const type_t *utype = get_user_type(type, &uname);
size = get_required_buffer_size_type(utype, uname, alignment);
}
--
1.4.3.4
More information about the wine-patches
mailing list