how to ignore "X variable may be used uninitialized in this function"

Ian Lance Taylor iant@google.com
Thu Jun 24 13:58:00 GMT 2010


"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



More information about the Gcc-help mailing list