Quote Originally Posted by bithub View Post
You do not need a cast in this case.
Of course you don't need one, but (gcc) will still always warn you. Because I submit code to other people who expect it to compile flawlessly (which is fair, if you are a packager it's not really your job to decide if a compiler warning in several thousand lines of code is relevant), I would include a cast to eliminate the warning.