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

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

 



Hi,

thanks for your quick answers!! I found out that compiling with

-Werror -Wno-error=missing-field-initializers

results in an error, but compiling with 

-Werror -Wno-missing-field-initializers

neither shows the warning nor results in an error! 

This behaviour differs from the behaviour with other warnings, like unused-parameter or sign-compare. This looks like a bug to me, what do you think?

> For a sufficiently recent GCC  -fdiagnostics-show-option should show
> the option that gives a warning. 

Thanks, this will help me with a number of other warnings.

Markus

[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