On 12-09-12 04:35 AM, Phani Bhushan Tholeti wrote:
Hi all:consider following code: //global scope int num =0; void foo(int num, int num1) { num=num1; //this is supposed to be for the global variable //other code return; } In the above code, is there any way I can make gcc throw a warning, that there are two variables of same name, accessible in the block?
use -Wshadow -- Mailing list guidelines and other related articles: http://lug-iitd.org/Footer
