[cfe-dev] warning ???
Richard Smith
richard at metafoo.co.uk
Wed Sep 4 14:20:47 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
It appears as an error (note the "error:") -- such constructs are
ill-formed in C++11. If you're referring to the "[-Wc++11-narrowing]", that
indicates that this error can be disabled with "-Wno-c++11-narrowing", as a
compatibility measure.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130904/1eefa381/attachment.html>
More information about the cfe-dev
mailing list