Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 May 2023 23:58:16 +0300
From:      Dmitry Chagin <dchagin@freebsd.org>
To:        Enji Cooper <yaneurabeya@gmail.com>
Cc:        Peter Holm <pho@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org>, "dev-commits-src-all@freebsd.org" <dev-commits-src-all@freebsd.org>, "dev-commits-src-main@freebsd.org" <dev-commits-src-main@freebsd.org>
Subject:   Re: git: acfb06062a68 - main - stress2: Fix warnings
Message-ID:  <ZHJu6DayDRO-w51b@heemeyer.club>
In-Reply-To: <605A888E-8907-4B20-8922-86511E383377@gmail.com>
References:  <202305270835.34R8ZA3g041896@gitrepo.freebsd.org> <41908493-F312-4BA2-A72B-B3C047656CCC@gmail.com> <ZHJbdxDGUiw%2Bgvqk@Peters-MacBook-Air.local> <605A888E-8907-4B20-8922-86511E383377@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, May 27, 2023 at 01:55:23PM -0700, Enji Cooper wrote:
> 
> > On May 27, 2023, at 12:35 PM, Peter Holm <pho@FreeBSD.org> wrote:
> > 
> > On Sat, May 27, 2023 at 11:10:23AM -0700, Enji Cooper wrote:
> >> 
> >>> On May 27, 2023, at 1:35 AM, Peter Holm <pho@FreeBSD.org> wrote:
> >>> 
> >>> The branch main has been updated by pho:
> >>> 
> >>> URL: https://cgit.FreeBSD.org/src/commit/?id=acfb06062a6862f7c823242243e68f7bcaf29999
> >>> 
> >>> commit acfb06062a6862f7c823242243e68f7bcaf29999
> >>> Author:     Peter Holm <pho@FreeBSD.org>
> >>> AuthorDate: 2023-05-27 08:31:00 +0000
> >>> Commit:     Peter Holm <pho@FreeBSD.org>
> >>> CommitDate: 2023-05-27 08:31:00 +0000
> >>> 
> >>>   stress2: Fix warnings
> >> 
> >> It seems like `n` could be removed in all of the sample programs.
> >> Cheers,
> >> -Enji
> >> 
> > 
> > Both 'n' and 'm' are used if DEBUG is defined.
> > 
> > [pho@mercat1 /usr/src/tools/test/stress2/misc]$ ./reaper2.sh
> > n = 19779 out of 56033
> > n = 20099 out of 56319
> > n = 20121 out of 56406
> 
> I see. Maybe the variables should only be declared/defined in the DEBUG case? Right now __unused kind of sends the wrong message to the developer and to the compiler (potentially).


__diagused

> Cheers,
> -Enji
> 





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ZHJu6DayDRO-w51b>