avoid uninit variable and unreachable code warnings
most of these warnings are not problems because of ample use of abort() calls. However, the large number of warnings makes it difficult to identify real problems. Initialize the variables to shut up the compilers. Change-Id: I8477c11b17c7b6a7d9074c721fdd2d7303b186a8
This commit is contained in:

committed by
Jeffrey Altman

parent
36dcd37cc7
commit
6850d6a65f
@@ -484,7 +484,7 @@ template_members(struct templatehead *temp, const char *basetype, const char *na
|
||||
}
|
||||
break;
|
||||
case TInteger: {
|
||||
char *itype;
|
||||
char *itype = NULL;
|
||||
|
||||
if (t->members)
|
||||
itype = "IMEMBER";
|
||||
@@ -644,7 +644,7 @@ template_members(struct templatehead *temp, const char *basetype, const char *na
|
||||
}
|
||||
case TSetOf:
|
||||
case TSequenceOf: {
|
||||
const char *type, *tname, *dupname;
|
||||
const char *type = NULL, *tname, *dupname;
|
||||
char *sename = NULL, *elname = NULL;
|
||||
int subtype_is_struct = is_struct(t->subtype, 0);
|
||||
|
||||
|
Reference in New Issue
Block a user