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?
I don't want any workarounds in the code (like changing variable
names, adding prefixes etc).
In the meantime, I am trying the GCC man pages, but they are too long
for me to read through (will complete it though). If I find any such
flag I'll reply to this mail.
--
Lots o' Luv,
Phani Bhushan
Let not your sense of morals prevent you from doing what is right -
Isaac Asimov (Salvor Hardin in Foundation and Empire)
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
--
Mailing list guidelines and other related articles: http://lug-iitd.org/Footer