<p dir="ltr">I seem to recall an actual functionality bug (maybe in regex?) In libc++ due to a missing return somewhere earlier this year...</p>
<p dir="ltr">Might be worth prioritizing some warnings and cleaning them up more aggressively.</p>
<div class="gmail_quote">On Aug 23, 2014 12:51 AM, "Chandler Carruth" <<a href="mailto:chandlerc@google.com">chandlerc@google.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 23, 2014 at 12:39 AM, 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><span style="font-family:arial,sans-serif;font-size:13px">> We have a Clang warning for this - I would like to know why that didn't catch it? Are we not building this with -Wreturn-type?</span><div><span style="font-family:arial,sans-serif;font-size:13px"><br>


</span></div></div><div><font face="arial, sans-serif">Currently we don't compile our tests with any warning flags. I'm not sure if it was just too noisy but looking at other defects</font></div><div><font face="arial, sans-serif">Coverity found its clear we need to enable at least some of them. There are a bunch of assignments that should be comparisons as well.</font></div>

</blockquote></div><br>I would suggest compiling with most warnings (-Wall -Wextra -pedantic maybe?) and using narrow and scoped pragmas to disable the warnings that we intentionally trigger to test warned-on behavior that the library is required to support.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">It'll likely be a ton of work though.</div></div>
<br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">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></blockquote></div>