Date: Sat, 3 Sep 2022 22:55:09 GMT From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 570773d68c52 - main - mgb: quiten -Wunused-function with LINT builds Message-ID: <202209032255.283Mt9JM007126@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=570773d68c526f039f7a65b099cdced95f75b002 commit 570773d68c526f039f7a65b099cdced95f75b002 Author: Bjoern A. Zeeb <bz@FreeBSD.org> AuthorDate: 2022-09-03 22:47:19 +0000 Commit: Bjoern A. Zeeb <bz@FreeBSD.org> CommitDate: 2022-09-03 22:47:19 +0000 mgb: quiten -Wunused-function with LINT builds As the function itself seems to be helpful don't remove the code but change the #ifdef DEBUG to #if 0 to avoid: warning: unused function 'mgb_dump_some_stats' [-Wunused-function] with LINT builds. --- sys/dev/mgb/if_mgb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/mgb/if_mgb.c b/sys/dev/mgb/if_mgb.c index ec8619f1dec4..8c58b965b7df 100644 --- a/sys/dev/mgb/if_mgb.c +++ b/sys/dev/mgb/if_mgb.c @@ -619,7 +619,7 @@ mgb_init(if_ctx_t ctx) error); } -#ifdef DEBUG +#if 0 static void mgb_dump_some_stats(struct mgb_softc *sc) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202209032255.283Mt9JM007126>