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

Greg Bedwell via cfe-dev cfe-dev at lists.llvm.org
Sun Nov 1 08:28:43 PST 2015


> My concern was more was more how the Clang driver behaves. I've always
> thought as warnings and errors as a dichotomy.
> However ``-Wreturn-type`` is an error but can be suppressed like a
> warning so it is neither an error nor a warning.
>
>
FWIW, the EDG C++ front-end also has the concept of a 'discretionary error'
which can have its severity overridden on the command line, as opposed to a
regular error which can't (see https://www.edg.com/docs/edg_cpp.pdf p29) so
this isn't unique to Clang.

-Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20151101/200cefd6/attachment.html>


More information about the cfe-dev mailing list