This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Missing "var is used uninitialized" warning?


Hi, compiled with -Wall -Wextra the wollowing lines don't complain about a being used uninitialized. Tried with 4.5 and 4.6. Am I missing something?

int func (void)
{
    int a = a;

    return a;
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]