[lldb-dev] Enabling warnings as errors

Zachary Turner zturner at google.com
Thu Aug 14 17:42:50 PDT 2014


There are alot of compilers, but only a small number that we support
building with.  And really, the burden would only be on making sure that
the compiler you personally build with builds warning free (which,
unfortunately, even that doesn't always happen).  If someone checks
something in on Mac that introduces warnings on Windows with MSVC, then a
Windows person would need to fix it, but I don't think that's too big of a
deal (well, I don't mind anyway).  The difference is just that "strive"
would become "require".  Sometimes you can't fix warnings for whatever
reason, but you could still disable them in that case.

I guess in an ideal world I would agree with you, that we should strive to
keep warnings down to as low a level as possible.  But in practice I think
it's too easy to ignore them, and so people do.


On Thu, Aug 14, 2014 at 5:28 PM, Greg Clayton <gclayton at apple.com> wrote:

> There are so many compilers and each compiler is good at detecting things
> that other compilers don't warn about.
>
> So I don't think we should enable warnings as errors, but I do think we
> should strive to keep warnings down to as low a level as possible.
>
> Greg
>
> > On Aug 14, 2014, at 10:38 AM, Zachary Turner <zturner at google.com> wrote:
> >
> > What would it take to enable warnings as errors on all platforms?
> >
> > I've done alot of work getting the windows build warning free, but it
> seems like very time I sync the code on linux or Mac, there's many many new
> warnings introduced.  I'm always vigilant about fixing warnings in my own
> code, it would be nice if everyone else had the same level of vigilance.
>  If warnings broke the build, then I think that would be a good motivator
> to fix your warnings.
> >
> > Thoughts?
> > _______________________________________________
> > lldb-dev mailing list
> > lldb-dev at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20140814/76f06ad0/attachment.html>


More information about the lldb-dev mailing list