This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler: Uninitialized Local Variables in a structure do not throw warning.

Tool/software: TI C/C++ Compiler

Hi team,

I recently observed an issue with uninitialzed local variables. Whenever there is a local variable declared and is used without initializing, compiler throws a warning "#551-D Variable "xx" is used before its value is set". The same is not reported for a structure. If some of the elements of a structure are initialzed and some are not initialized ard are used, compiler doesn't throw up any warning. 

I observed this on compilers arm_15.12.2.STS and ti-cgt-arm_5.2.5.

Kindly check this and let us know if you agree.

Thanks and Regards,

Vishwanath Reddy.