This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
bool as return value for an unsigned long function
- From: Markus Wenke <M dot Wenke at web dot de>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 09 Oct 2007 09:32:47 +0200
- Subject: bool as return value for an unsigned long function
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?
thanks in advace
Markus