Re: bool as return value for an unsigned long function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tom St Denis schrieb:
Markus Wenke wrote:
Hi,

I have a function, that must return a "unsigned long".
If I return a c++ - "true" the compiler doesn't warn.
I know that it is ok in c++, but do I have any chance
to find automaticly all this places in my (big) code, to avoid errors?

Try turning up the warnings e.g. -Wall -W or something similar.
-Wall is turned on
Also a lint tool like splint will likely catch those as well.

Thank you, I try this

Markus


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux