git: 570773d68c52 - main - mgb: quiten -Wunused-function with LINT builds
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 03 Sep 2022 22:55:09 UTC
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) {