JohnGraham |
07-23-2010 10:31 AM |
Quote:
Originally Posted by yousafsajjad
(Post 4043104)
I know why is it giving a warning and I can fix it but I am asked not to change it rather try ignoring it some how using some gcc command
|
By who? Who on earth would ask you to do that? Are you making this up because you started off wanting to suppress the warning without changing the code and are now dead-set on achieving that?
Just take out the typedef, because you're not typedef-ing anything. You may as well try and declare it static and to have an int return type.
If an instructor/teacher has asked you to do this as an exercise in suppressing warnings or whatever, slap them from me. If it's a question in a book, tell me the title so I can find all the copies and burn them. It's a useless exercise and if anyone set it, they should feel ashamed of themselves.
P.S. Sorry for the rudeness (I'm British, and hence must apologise for everything) but seriously - it's such a waste of your time and effort it's just downright rude.
|