[cfe-dev] Is -Wno-return-type a warning or error?

Joerg Sonnenberger via cfe-dev cfe-dev at lists.llvm.org
Sun Nov 1 13:09:06 PST 2015


On Thu, Oct 29, 2015 at 11:55:38AM +0000, Dan Liew via cfe-dev wrote:
> I was playing with Clang 3.7 on some old code I noticed that
> ``-Wreturn-type`` seems to be treated as error.

It's a default error. You can downgrade it to warning via
-Wno-error=return-type and ignore it completely with -Wno-return-type.

Joerg



More information about the cfe-dev mailing list