Avoid two warnings in tools/widl/parser.y (RESEND)
Gerald Pfeifer
gerald at pfeifer.com
Sun Feb 28 06:13:59 CST 2010
I verified that this actually fixes the warnings
parser.y:2327:17: warning: 'container_type_name' may be used
uninitialized in this function
parser.y:2328:17: warning: 'var_type' may be used uninitialize
in this function
for both GCC 4.2 and the forthcoming GCC 4.5, thus resending.
Gerald
ChangeLog:
Initialize two variables in the default/assert(0) case.
diff --git a/tools/widl/parser.y b/tools/widl/parser.y
index 2af7742..f088f8c 100644
--- a/tools/widl/parser.y
+++ b/tools/widl/parser.y
@@ -2347,6 +2347,7 @@ static void check_field_common(const type_t *container_type,
break;
default:
/* should be no other container types */
+ container_type_name = var_type = NULL;
assert(0);
}
More information about the wine-patches
mailing list