Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 May 2018 22:33:10 -0700
From:      Matthew Macy <mmacy@freebsd.org>
To:        Gleb Smirnoff <glebius@freebsd.org>
Cc:        src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org,  svn-src-head@freebsd.org
Subject:   Re: svn commit: r333860 - head/sys/kern
Message-ID:  <CAPrugNryj%2BMcH8XsLxm9GOSKwPqJZF-VrG5Rm5rOA8mk8bkd0Q@mail.gmail.com>
In-Reply-To: <20180524052520.GZ71675@FreeBSD.org>
References:  <201805190510.w4J5AqfS054367@repo.freebsd.org> <20180523222743.GU71675@FreeBSD.org> <CAPrugNpKxEVx%2Bg0D6qUwq=yw_W-QeuntupwAjteK1yALkJktag@mail.gmail.com> <20180523225729.GV71675@FreeBSD.org> <CAPrugNpsiYQ1MKkgGbkwPEeTcsTCdD_u5GAvYpMJKHzeSbCL=w@mail.gmail.com> <20180524044252.GW71675@FreeBSD.org> <CAPrugNoVPCbB0qTY=Z1dwCZ%2BbCbVbA1d5b0-tw5qaPxWRK0q8g@mail.gmail.com> <20180524050717.GY71675@FreeBSD.org> <CAPrugNri9xu6DeNR5pXWv6UjFEDuKuZD5LGbyvQAFKM-5F87mg@mail.gmail.com> <20180524052520.GZ71675@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 23, 2018 at 10:25 PM, Gleb Smirnoff <glebius@freebsd.org> wrote:
> On Wed, May 23, 2018 at 10:13:25PM -0700, Matthew Macy wrote:
> M> On Wed, May 23, 2018 at 10:07 PM, Gleb Smirnoff <glebius@freebsd.org> wrote:
> M> > Can you please explain the bug supposed to be fixed by r333860 QUESTION MARK
> M>
> M> Did I say it fixed a bug? Or are you saying we should just turn off
> M> compiler warnings because Gleb Smirnoff knows better?
>
> You just did say "Warnings find bugs PERIOD." This implicitly claimed
> that shutting this one fixed a bug.
>
> Indeed, I am saying that in this particular case Gleb Smirnoff knows
> better than gcc8 does. However, I'm not saying to turn off compiler warnings.
> Never said that. I am saying (several times already) not to insert redundant
> code to shut up a warning that is false.

I'm not saying you're right or wrong. On initial inspection it
appeared uninitialized. I may be wrong. I never asserted that you were
wrong. What I'm trying to understand is what your desired policy with
respect to warnings is. If the author knows that a warning is false he
should

a) Disable that warning for the entire build because it is wrong in one case?

b) Edit the Makefile to disable the warning for that file?

c) Leave the warning enabled and just permit a noisy build where the
warning potentially drowns out real issues?

Right now you're discussing a single line in a single file when in
fact this is a kernel wide policy issue. All three of these choices
seem less desirable than selectively placating the compiler as I have
en masse for much of the tree.


-M



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPrugNryj%2BMcH8XsLxm9GOSKwPqJZF-VrG5Rm5rOA8mk8bkd0Q>