<div dir="ltr"><div><br></div>> <span style="font-family:arial,sans-serif;font-size:13px">I don't think we should spend our time fixing warnings (coverity or otherwise) is code that is supposed to produce compile errors... seems a waste.</span><div>
<span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div>I don't want to revive this thread, but I really want to address this.<span style="font-family:arial,sans-serif;font-size:13px"><br></span></div>
<div><br></div><div>Its *more* important to fix problems in tests that are supposed to fail to compile than any other test. Its super easy to have code fail to compile. </div><div>What we are trying to test is that it fails for the *right* reason. Any other errors, such as the one in this patch, could cause the test to "pass" incorrectly.</div>
<div>What if this test was "passing" because of the missing return? </div><div><br></div><div>/Eric</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 23, 2014 at 8:14 PM, Eric Fiselier <span dir="ltr"><<a href="mailto:eric@efcs.ca" target="_blank">eric@efcs.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><p dir="ltr">If we want to enable warnings and use static analysis tools these sort of errors simply need to be fixed to prevent noise.</p>
<p dir="ltr">/Eric<br>
</p>
</div><div class="gmail_quote"><div class="">On Aug 23, 2014 7:06 PM, "Chandler Carruth" <<a href="mailto:chandlerc@google.com" target="_blank">chandlerc@google.com</a>> wrote:<br type="attribution"></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 23, 2014 at 6:01 PM, Jonathan Roelofs <span dir="ltr"><<a href="mailto:jonathan@codesourcery.com" target="_blank">jonathan@codesourcery.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="overflow:hidden">Wait a second, this test is *supposed* to be a compile failure, but not for the reason I originally thought. It's testing that unique_ptr requires the deleter have a public default constructor. Because it fails to compile, '-Wall -Wextra -pedantic -Werror' won't help us here :(<br>
</div></blockquote></div><br></div><div class="gmail_extra">Hah.</div><div class="gmail_extra"><br>I don't think we should spend our time fixing warnings (coverity or otherwise) is code that is supposed to produce compile errors... seems a waste.</div>
</div>
<br></div></div><div class="">_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu" target="_blank">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></div></blockquote></div>
</blockquote></div><br></div>