[cfe-dev] warning ???

Eli Friedman eli.friedman at gmail.com
Wed Sep 4 14:22:54 PDT 2013


On Wed, Sep 4, 2013 at 2:06 PM, reed kotler <rkotler at mips.com> wrote:

> /home/rkotler/workspace/....: error: co
> nstant expression evaluates to -1 which cannot be narrowed to type
> 'unsigned int
> ' [-Wc++11-narrowing]
>
> Shows as a warning but is really an error to the compiler
>
>
That's our "DefaultError" marking; it's basically equivalent to specifying
"-Werror=c++11-narrowing" by default.  We use it here because we really
don't want people to write code that isn't well-formed by accident.

-Eli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130904/45290dc1/attachment.html>


More information about the cfe-dev mailing list