Though i don't understand what you ask for, Here's nothing.

Considering that syntax I am assuming it to be C, GCC by default should
throw an error if two variables of the same name exist in the same scope.
Consider the following:

#include<xyz.h>

static int abc = 0;

static void do_work(void)
{
  static int abc = 1;  // An error will be generated here.
  blah blah...
}

void main(int argc, void **argv)
{
  do_work();
}

On Wed, Sep 12, 2012 at 2:05 PM, Phani Bhushan Tholeti <[email protected]>wrote:

> 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?
>

-- 
Mailing list guidelines and other related articles: http://lug-iitd.org/Footer

Reply via email to