I know there is a uninitialized warning in gcc that can tell you if a variable is uninitialized. This is clear to me. But I want to know what is "Maybe-Initialized" warning?
Is gcc not sure if this is initialized or not. Or consider this, the code is initializes properly and gcc think "maybe" it is not initialized. If the compiler is not sure why I should have this warning at all?
Now I can disable the warning with -Wno-maybe-uninitialized
or do a fix in the code.
But my question is what does this means? Why gcc thinks it maybe uninitialized. gcc is sure that the variable is initialized because I am not getting -Wuninitialized
.
I am using GCC 4.8 Fedora 21 x86_64.
Also I would appreciate if someone could show how this warning is triggered.