[cfe-dev] rfc: winnt.h's UNREFERENCED_PARAMETER() vs clang's -Wunused-value

Joerg Sonnenberger via cfe-dev cfe-dev at lists.llvm.org
Tue Oct 20 11:30:53 PDT 2015


On Sat, Oct 10, 2015 at 02:50:33PM -0700, Nico Weber via cfe-dev wrote:
> clang has a useful warning -Wunused-value that warns on things such as `4;`
> (this probably meant to say `return 4;`).

One note, there is a GCC extension around for returning values from
blocks, so be careful with any change here.

Joerg



More information about the cfe-dev mailing list