tree-ssa.c ((warn_uninit): Annotate warning with -Wuninitialized.

* tree-ssa.c ((warn_uninit): Annotate warning with
       -Wuninitialized.

From-SVN: r124161
This commit is contained in:
Dirk Mueller 2007-04-25 18:45:39 +00:00 committed by Dirk Mueller
parent 253a697e66
commit d1c2effe9a
2 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,8 @@
* c-typeck.c (build_compound_expr): Annotate warning()
call with OPT_Wunused_value.
* tree-ssa.c ((warn_uninit): Annotate warning with
-Wuninitialized.
2007-04-25 Thiemo Seufer <ths@mips.com>

View File

@ -1150,7 +1150,7 @@ warn_uninit (tree t, const char *gmsgid, void *data)
locus = (context != NULL && EXPR_HAS_LOCATION (context)
? EXPR_LOCUS (context)
: &DECL_SOURCE_LOCATION (var));
warning (0, gmsgid, locus, var);
warning (OPT_Wuninitialized, gmsgid, locus, var);
xloc = expand_location (*locus);
floc = expand_location (DECL_SOURCE_LOCATION (cfun->decl));
if (xloc.file != floc.file