This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] annotate -Wuninitialized warning


On 4/25/07, Dirk Mueller <dmueller@suse.de> wrote:

Hi,


bootstrapped, regtested on i686-suse-linux, no further regressions.

This is (obviously) ok.


Thanks,
Richard.

Dirk


2007-04-23 Dirk Mueller <dmueller@suse.de>

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

--- tree-ssa.c
+++ tree-ssa.c
@@ -1150,7 +1150,7 @@ warn_uninit (tree t, const char *gmsgid,
   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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]