<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On 30 June 2015 at 18:18, Enrico Granata <span dir="ltr"><<a href="mailto:egranata@apple.com" target="_blank">egranata@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><span class=""><blockquote type="cite"><div><div dir="ltr"><div>option a: cast the switched value to int: this should get rid of the warning in this case..</div></div></div></blockquote><div><br></div></span><div>If anything, this feels like a hack-around the warning. Given that there is at least a better option, I’d say “nay” personally</div></div></div></blockquote><div> </div><div>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?</div><div><br></div></div></div></div>