1. Please bottom-post (or inline post). That means, please type your reply below the email you are replying to (like in this email) instead of typing your reply above the email your are replying to.

@sharad yeah. the code is giving warning  as it should using the
flag.

2. Using which flag? How did you compile the code. Can you copy-paste the warning?

what flags are you using? it might be the case that you haven't added
up the -W and - Werror flags ..

3. I used "-Wall" (after fixing the return type (and returning 0) and using char *argv[]). The only warnings were about unused variables and not about shadowing.

$ gcc -Wall test.c
test.c: In function ‘do_work’:
test.c:5: warning: unused variable ‘abc’
test.c: At top level:
test.c:1: warning: ‘abc’ defined but not used


Sharad

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

Reply via email to