[Lldb-commits] [lldb] r240606 - Handle (or at least don't crash) trying to get the encoding for a bunch of new builtin types in clang trunk

Pavel Labath labath at google.com
Wed Jul 1 08:57:12 PDT 2015


On 30 June 2015 at 18:18, Enrico Granata <egranata at apple.com> wrote:

> option a: cast the switched value to int: this should get rid of the
> warning in this case..
>
>
> If anything, this feels like a hack-around the warning. Given that there
> is at least a better option, I’d say “nay” personally
>

I don't think it's any more of a hack than casting an expression to void to
avoid an "unused value" warning or writing if((a=b)!=0) to avoid the "did
you mean a==b" warning?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150701/34ec5246/attachment.html>


More information about the lldb-commits mailing list