Re: How to turn off the compiler warning "missing initializer"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1 April 2010 13:18, John (Eljay) Love-Jensen <eljay@xxxxxxxxx> wrote:
> Hi Markus,
>
> q.v. http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
>
> Look for -Wmissing-field-initializers.

For a sufficiently recent GCC  -fdiagnostics-show-option should show
the option that gives a warning. Otherwise, the warning cannot be
disabled with a -Wno-* option or it is a bug that you should report.

> You can disable the warning by using:
>
> -Wall -Wextra -Wno-missing-field-initializers -Werror

Or perhaps: -Wno-error=missing-field-initializers so you do not get an
error but you still see the warning.

We should add this question to http://gcc.gnu.org/wiki/FAQ

Cheers,

Manuel.

>
> HTH,
> --Eljay
>

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux