Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Aug 2023 07:43:45 -0700
From:      Cy Schubert <Cy.Schubert@cschubert.com>
To:        Konstantin Belousov <kib@FreeBSD.org>
Cc:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   Re: git: 1384a0b940e8 - main - kern/subr_unit.c: fix non-debug  build
Message-ID:  <20230818144345.9998F2EF@slippy.cwsent.com>
In-Reply-To: <202308181337.37IDbMwl051912@gitrepo.freebsd.org>
References:  <202308181337.37IDbMwl051912@gitrepo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In message <202308181337.37IDbMwl051912@gitrepo.freebsd.org>, Konstantin 
Belous
ov writes:
> The branch main has been updated by kib:
>
> URL: https://cgit.FreeBSD.org/src/commit/?id=1384a0b940e87876d36d50ad58581c24
> dc642714
>
> commit 1384a0b940e87876d36d50ad58581c24dc642714
> Author:     Konstantin Belousov <kib@FreeBSD.org>
> AuthorDate: 2023-08-18 13:36:06 +0000
> Commit:     Konstantin Belousov <kib@FreeBSD.org>
> CommitDate: 2023-08-18 13:37:16 +0000
>
>     kern/subr_unit.c: fix non-debug build
>     
>     Sponsored by:   The FreeBSD Foundation
>     MFC after:      1 week
> ---
>  sys/kern/subr_unit.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sys/kern/subr_unit.c b/sys/kern/subr_unit.c
> index 3d45a0c1c5cb..7a23f216d98e 100644
> --- a/sys/kern/subr_unit.c
> +++ b/sys/kern/subr_unit.c
> @@ -353,7 +353,7 @@ check_unrhdr(struct unrhdr *uh, int line)
>  	struct unr *up;
>  	struct unrb *ub;
>  	int w;
> -	u_int y, z;
> +	u_int y __diagused, z __diagused;

It still doesn't like it.


/opt/src/git-src/sys/kern/subr_unit.c:356:9: error: expected ';' at end of 
declaration
        u_int y __diagused, z __diagused;
               ^
               ;

>  
>  	y = uh->first;
>  	z = 0;
>


-- 
Cheers,
Cy Schubert <Cy.Schubert@cschubert.com>
FreeBSD UNIX:  <cy@FreeBSD.org>   Web:  https://FreeBSD.org
NTP:           <cy@nwtime.org>    Web:  https://nwtime.org

			e^(i*pi)+1=0





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