gcc/g++ have __attribute__((warn_unused_result)) that you can specify
on a per-function basis:

http://www.ohse.de/uwe/articles/gcc-attributes.html#func-warn_unused_result

Or do you mean warnings when a function is supposed to return a value
but does not have a return statement at the end?

--Mike

On Thu, Jul 23, 2009 at 4:09 PM, Ben Laurie<[email protected]> wrote:
>
> I just fixed a bug that wouldn't have happened at all if missing
> return values were flagged ... is there a way to turn on compiler
> warnings (building on Linux using make)? Is there some reason they're
> not on by default?

--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to