<div dir="ltr">I would prefer if we were going in the direction of decreasing the number of warnings rather than increasing it (right now, this is the only warning that I get for my build config). Having the default clause in there also sounds reasonable to me, so how about we find a way to suppress this warning without changing semantics?<div>option a: cast the switched value to int: this should get rid of the warning in this case..</div><div>option b: compile with -Wno-covered-switch-default: I personally think I could live just fine without this warning</div><div>option c: ???</div><div><br></div><div>pl</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 29 June 2015 at 23:47, 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"><br><div><span class=""><blockquote type="cite"><div>On Jun 29, 2015, at 11:58 AM, Ed Maste <<a href="mailto:emaste@freebsd.org" target="_blank">emaste@freebsd.org</a>> wrote:</div><br><div><div>On 29 June 2015 at 14:47, Enrico Granata <<a href="mailto:egranata@apple.com" target="_blank">egranata@apple.com</a>> wrote:<br><blockquote type="cite"><br><blockquote type="cite">I can see arguments for and against removing the default, but I think<br>removing it will cause a new warning to appear if Clang adds other new<br>kinds in the future.<br></blockquote><br>Yes. And I am slightly more worried about the silent failure when that happens rather than the warning per se - which is why I am hesitant to just say “yes please remove"<br></blockquote><br>I mean the warning will prompt us to go and add any new missing enum<br>values </div></div></blockquote><div><br></div></span><div>Until we’re busy and forget to do it and some builds end up with bugs because of silent fall-through at runtime :-)</div><span class=""><br><blockquote type="cite"><div><div>if this happens -- especially if we enable -Werror :)<br></div></div></blockquote><div><br></div></span><div>Which I suspect we’re not doing anytime soon</div><span class=""><br><blockquote type="cite"><div><div><br>I don't feel too strongly one way or the other, </div></div></blockquote><div><br></div></span><div>Likewise. I have a slight preference for keeping the default in there, but only so slight</div><span class=""><br><blockquote type="cite"><div><div>but it seems we have<br>removed the defaults in all of these cases in the past.</div></div></blockquote></span></div><div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br>Thanks,</div><span class=""><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><i>- Enrico</i><br>📩 egranata@<font color="#ff2600"></font>.com ☎️ 27683</div>
</span></div>
<br></div><br>_______________________________________________<br>
lldb-commits mailing list<br>
<a href="mailto:lldb-commits@cs.uiuc.edu">lldb-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits</a><br>
<br></blockquote></div><br></div>