On Wed, Sep 12, 2012 at 7:24 PM, Sharad Birmiwal <[email protected]>wrote:
> 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. > > > Ugh, sorry for that.. > @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? > > I am talking of -Wshadow flag only. > > 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 > > > you may check at http://pastebin.com/4jiJFtwt > Sharad > > > -- > Mailing list guidelines and other related articles: > http://lug-iitd.org/Footer > -- Regards, saurabh shandilya http://about.me/shandilyasaurabh www.beyondszine.wordpress.com 9910118292 -- Mailing list guidelines and other related articles: http://lug-iitd.org/Footer
