Cop out on uninitialized large variables.

vectors, quaternions and structs are a little tricky. I need to think about
how to get them working, but I also want qfcc to get through as much code
as possible.
This commit is contained in:
Bill Currie 2012-11-24 16:49:46 +09:00
parent 40c97f9570
commit 4c1dc568e0

View file

@ -550,7 +550,11 @@ flow_uninitialized (flowgraph_t *graph)
def = flowvar_get_def (var);
dummy.line = def->line;
dummy.file = def->file;
warning (&dummy, "%s may be used uninitialized", def->name);
if (type_size (def->type) != 1) {
bug (&dummy, "too hard basket");
} else {
warning (&dummy, "%s may be used uninitialized", def->name);
}
}
}
set_delete (stuse);