I guess it was harmless before, but it's cleaner now. In particular,
the return value of gras_datadesc_by_symbol() is useless, but the side
effects are mandatory.
s_type_modifier_t tm;
- gras_datadesc_type_t struct_desc = NULL;
gras_datadesc_type_t typedef_desc = NULL;
XBT_IN("");
parse_type_modifier(&tm);
if (tm.is_struct) {
- struct_desc = parse_struct(definition);
+ gras_datadesc_type_t struct_desc = parse_struct(definition);
}
parse_type_modifier(&tm);
{
int cpt;
int cpt2;
- gras_datadesc_type_t pbio_type;
pbio_t i, j;
XBT_INFO
("---- Test on the PBIO IEEE struct (also tests GRAS DEFINE TYPE) ----");
- pbio_type = gras_datadesc_by_symbol(s_pbio);
+ gras_datadesc_by_symbol(s_pbio);
/* Fill in that damn struct */
i.Cnstatv = 325115;