warnings as errors

2019-05-21 Thread Pedro Larroy
warnings and I would like to call for additional help and contributions in this area. There was a question from Lin about discussing this on the mailing list, I have the feeling that everybody agrees on moving towards zero warnings and warnings as errors. I think there are unavoidable warnings

Re: warnings as errors

2019-05-21 Thread Sheng Zha
an a dozen of PRs fixing > warnings and I would like to call for additional help and > contributions in this area. > > There was a question from Lin about discussing this on the mailing > list, I have the feeling that everybody agrees on moving towards zero > warnings and warning

Re: warnings as errors

2019-05-22 Thread Pedro Larroy
ional help and > > contributions in this area. > > > > There was a question from Lin about discussing this on the mailing > > list, I have the feeling that everybody agrees on moving towards zero > > warnings and warnings as errors. I think there are unavoidable > >

Re: warnings as errors

2019-07-18 Thread Pedro Larroy
gt; > > trivial and ungrateful efforts, take nonetheless energy on the > > > contributor side. > > > > > > I think overall I submitted myself more than a dozen of PRs fixing > > > warnings and I would like to call for additional help and > > > contri

Proposal for treating warnings as errors in Linux & Clang builds (-Werror)

2018-01-15 Thread Pedro Larroy
Hi I would like to propose to compile in CI with warnings as errors for increased code quality. This has a dual purpose: 1. Enforce a clean compilation output. Warnings often indicate deficiencies in the code and hide new warnings which can be an indicator of problems. 2. Warnings can surface

Re: Proposal for treating warnings as errors in Linux & Clang builds (-Werror)

2018-01-15 Thread Marco de Abreu
+1 On Mon, Jan 15, 2018 at 6:27 PM, Pedro Larroy wrote: > Hi > > I would like to propose to compile in CI with warnings as errors for > increased code quality. This has a dual purpose: > > 1. Enforce a clean compilation output. Warnings often indicate > deficiencies in

Re: Proposal for treating warnings as errors in Linux & Clang builds (-Werror)

2018-01-15 Thread Haibin Lin
+1 (binding) On Mon, Jan 15, 2018 at 9:43 AM, Marco de Abreu < marco.g.ab...@googlemail.com> wrote: > +1 > > On Mon, Jan 15, 2018 at 6:27 PM, Pedro Larroy < > pedro.larroy.li...@gmail.com> > wrote: > > > Hi > > > > I would like to prop

Re: Proposal for treating warnings as errors in Linux & Clang builds (-Werror)

2018-01-15 Thread Chris Olivier
M, Pedro Larroy < > pedro.larroy.li...@gmail.com> > wrote: > > > Hi > > > > I would like to propose to compile in CI with warnings as errors for > > increased code quality. This has a dual purpose: > > > > 1. Enforce a clean compilation output. Warnings often

Re: Proposal for treating warnings as errors in Linux & Clang builds (-Werror)

2018-01-15 Thread Ziyue Huang
t; a particular compiler/platform/version? > > On Mon, Jan 15, 2018 at 9:43 AM, Marco de Abreu < > marco.g.ab...@googlemail.com> wrote: > > > +1 > > > > On Mon, Jan 15, 2018 at 6:27 PM, Pedro Larroy < > > pedro.larroy.li...@gmail.com> > > wrote: >

Re: Proposal for treating warnings as errors in Linux & Clang builds (-Werror)

2018-01-15 Thread Yuan Tang
> > > > +1 > > > > > > On Mon, Jan 15, 2018 at 6:27 PM, Pedro Larroy < > > > pedro.larroy.li...@gmail.com> > > > wrote: > > > > > > > Hi > > > > > > > > I would like to propose to compile in CI with warnings

Re: Proposal for treating warnings as errors in Linux & Clang builds (-Werror)

2018-01-15 Thread Xingjian SHI
for treating warnings as errors in Linux & Clang builds (-Werror) +1 since warnings might be potential errors. In my perspective, an excellent project is better to have 0 warnings. Chris Olivier 于2018年1月16日 周二上午2:27写道: > If enabled, it should only cause errors in Release builds, since

Re: Proposal for treating warnings as errors in Linux & Clang builds (-Werror)

2018-01-16 Thread Pedro Larroy
that will be easily fixable once we upgrade the compiler in CI. We also get the benefit of preventing warnings on the gcc versions that the author is using, in the case he has a different one. Another option is to enable warnings as errors only on CI. I would prefer to have it enabled by de

Re: Proposal for treating warnings as errors in Linux & Clang builds (-Werror)

2018-01-16 Thread Marco de Abreu
I'd vote for having warnings as errors only for CI but not in general builds which are getting executed by users on their local machine. Just in case CI misses a warning due to a different version, this could block a developer from compiling MXNet locally even though it might just be a wa

Re: Proposal for treating warnings as errors in Linux & Clang builds (-Werror)

2018-01-16 Thread Barber, Christopher
Personally, I don’t like treating warnings as errors because it prevents compilation from completing and causes you to lose any ability to test the code and get any other information. Killing the build because of a failed warning for something that might not matter means that you may not find

Re: Proposal for treating warnings as errors in Linux & Clang builds (-Werror)

2018-01-16 Thread Marco de Abreu
So you're proposing to have a stage AFTER test execution which would report warnings as errors? While this is a good idea, I'm afraid that a fail-fast would also have its benefits - especially considering that compilation only takes a few minutes and consumes few resources while test

Re: Proposal for treating warnings as errors in Linux & Clang builds (-Werror)

2018-01-16 Thread Chris Olivier
open up a JIRA to your team and you will fix them? On Tue, Jan 16, 2018 at 7:48 AM Marco de Abreu wrote: > So you're proposing to have a stage AFTER test execution which would report > warnings as errors? While this is a good idea, I'm afraid that a fail-fast > would als

Re: Proposal for treating warnings as errors in Linux & Clang builds (-Werror)

2018-01-16 Thread Barber, Christopher
I can see an argument for treating warnings as errors during manual builds (if the developer so wishes), but for automated builds I would rather get more information. I also wouldn’t kill a build just because a test fails either because there may be useful information from other tests. Why

Re: Proposal for treating warnings as errors in Linux & Clang builds (-Werror)

2018-01-16 Thread Pedro Larroy
ast having warnings as errors on CI. Regarding my development experience, I just try to make bona fide recommendations given that I worked (survived?) in C++ codebases with hundreds of developers that run successfully in the order of billions of devices. I'm sure you have your own bag of tricks

Re: Proposal for treating warnings as errors in Linux & Clang builds (-Werror)

2018-01-16 Thread McCollum, Cliff
n to treat warnings as errors in any code that leaves a developer's own machine. If a team/project doesn't do this, it is relying on the good intentions of people to prevent code warnings from multiplying to the point that they become effectively useless. I have mixed feelings about

Re: Proposal for treating warnings as errors in Linux & Clang builds (-Werror)

2018-01-16 Thread kellen sunderland
full tests run for information purposes. However, given how resource intensive our testing is I'd prefer that we run some sanity checks first before we launch a full test run. @Chris + Pedro: I think it's a good idea to focus discussion on what should happen in CI. Most CI builds alread

Re: Proposal for treating warnings as errors in Linux & Clang builds (-Werror)

2018-01-16 Thread Barber, Christopher
a good idea to focus discussion on what should happen in CI. Most CI builds already have warnings as errors turned on (as mentioned by Xingjian ) because we have USE_DEV=1 set. We currently have the following warnings disabled in CI (i.e. they won't fail the build, and are n