Date: Fri, 19 Apr 2024 12:58:19 +0200 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org> To: Wei Hu <weh@microsoft.com> Cc: Konstantin Belousov <kostikbel@gmail.com>, Warner Losh <imp@bsdimp.com>, "freebsd-hackers@FreeBSD.org" <freebsd-hackers@freebsd.org> Subject: Re: How to add a -W flag in local Makefile Message-ID: <86cyqlbovo.fsf@ltc.des.dev> In-Reply-To: <TYZP153MB03991E84C684145A94EA306ABB0D2@TYZP153MB0399.APCP153.PROD.OUTLOOK.COM> (Wei Hu's message of "Fri, 19 Apr 2024 04:20:13 %2B0000") References: <TYZP153MB0399580B98D5F790C0A551C3BB0E2@TYZP153MB0399.APCP153.PROD.OUTLOOK.COM> <CANCZdfoJD1gb1SVb9xiyUAPe8mWL1SZBB%2BtJ3ZOASMWxO6nmbg@mail.gmail.com> <TYZP153MB039998D645FD84C28A9A057EBB0E2@TYZP153MB0399.APCP153.PROD.OUTLOOK.COM> <ZiFe_A6takkhcyL7@kib.kiev.ua> <TYZP153MB03991E84C684145A94EA306ABB0D2@TYZP153MB0399.APCP153.PROD.OUTLOOK.COM>
next in thread | previous in thread | raw e-mail | index | archive | help
Wei Hu <weh@microsoft.com> writes: > The same code already exists in Linux and Windows. Linux also added a com= piling > flag to suppress similar warnings.=20 That's not an excuse. The code makes no sense. > Anyway, the purpose of this email is to understand how to add such flags = in local > Makefiles and make it effective for global buildkernel. Adding such flags > in local Makefiles already proves to be working when only building under = local=20 > directory. You would have to add it to every line in sys/conf/files* that references a C file which includes this header. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86cyqlbovo.fsf>