This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: how to ignore "X variable may be used uninitialized in this function"
- From: Ian Lance Taylor <iant at google dot com>
- To: "smallboatca\ at yahoo dot com" <smallboatca at yahoo dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 23 Jun 2010 21:51:44 -0700
- Subject: Re: how to ignore "X variable may be used uninitialized in this function"
- References: <28977973.post@talk.nabble.com>
"smallboatca@yahoo.com" <smallboatca@yahoo.com> writes:
> I got this "cond" may be used uninitialized in this function waring in
> compiling my program.
>
> I used -Wuninitialized to ignore this warning, but it does not work.
> Do you know which option (-W????) is for this "X variable may be used
> uninitialized in this function"? Thanks
In some cases you can find out by using the option
-fdiagnostics-show-option.
Otherwise you are going to have to show us a small test case and the
compilation line.
Ian