http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39589

Szikra István <steven.spark+dev at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |steven.spark+dev at gmail dot 
com

--- Comment #1 from Szikra István <steven.spark+dev at gmail dot com> ---
I have the same (or similar) problem, and would like to have an option to
enable warnings for incomplete structure initialization with designated
initializers, where not all fields were explicitly assigned. 

(I know that the omitted fields are going to be 0, but that does not help me
much in my embedded project. I would really like a compilation warning for the
occasional misses, and not have to use other code analysis tools. Unfortunately
splint does not even work for gnu99 code.)

More details, examples can be found here:
http://stackoverflow.com/questions/19430285/how-to-ensure-structures-are-completly-initialized-by-name-in-gcc

Thanks in advance for anyone who can help us out.

Reply via email to