mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-18 18:01:13 +00:00
Allow the uninitialized variable warning to be suppressed.
This commit is contained in:
parent
eacc59c016
commit
0186ca993d
1 changed files with 4 additions and 2 deletions
|
@ -630,8 +630,10 @@ flow_uninit_scan_statements (flownode_t *node, set_t *defs, set_t *uninit)
|
|||
if (set_is_intersecting (defs, var->define)) {
|
||||
def_t *def = flowvar_get_def (var);
|
||||
if (def) {
|
||||
warning (st->expr, "%s may be used uninitialized",
|
||||
def->name);
|
||||
if (options.warnings.uninited_variable) {
|
||||
warning (st->expr, "%s may be used uninitialized",
|
||||
def->name);
|
||||
}
|
||||
} else {
|
||||
bug (st->expr, "st %d, uninitialized temp %s",
|
||||
st->number, operand_string (var->op));
|
||||
|
|
Loading…
Reference in a new issue