On Wed, 2011-02-02 at 22:20 +0000, Matthias Scheler wrote: > > Stupid gcc didn't give a warning here.. I should create some nightly run > > that emails me if clang gives any warnings on latest hg (it would have > > caught this). > > clang can warn about such things? That is useful. The amount of automated > cast that C(++) does is a never ending source of problems.
Hmm. Actually looks like this is only a problem when returning _Bool. Neither warn about that and both warn if it's int. Lets see if I can get either of them to change their minds about this.