On Tue, 11 Feb 2025 16:49:54 +0800 Wenbo Cao <caowe...@mucse.com> wrote:
> diff --git a/drivers/net/rnp/base/meson.build > b/drivers/net/rnp/base/meson.build > new file mode 100644 > index 0000000000..9ea88c3bff > --- /dev/null > +++ b/drivers/net/rnp/base/meson.build > @@ -0,0 +1,22 @@ > +# SPDX-License-Identifier: BSD-3-Clause > +# Copyright(C) 2023 Mucse IC Design Ltd. > + > +sources = [ > + 'rnp_mbx.c', > +] > + > +error_cflags = ['-Wno-unused-value', > + '-Wno-unused-but-set-variable', > + '-Wno-unused-parameter', > + ] Put the first item on new line, meson is like python and similar style applies. It is disappointing that base code is so messy that you have to disable warnings. > +c_args = cflags > +foreach flag: error_cflags > + if cc.has_argument(flag) > + c_args += flag > + endif > +endforeach