[cfe-dev] Is -Wno-return-type a warning or error?
Dan Liew via cfe-dev
cfe-dev at lists.llvm.org
Mon Nov 2 03:50:03 PST 2015
On 1 November 2015 at 21:09, Joerg Sonnenberger via cfe-dev
<cfe-dev at lists.llvm.org> wrote:
> 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.
I didn't know about the ``-Wno-error=*`` flags. Solves my problem.
Thanks.
More information about the cfe-dev
mailing list