diff options
author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2022-09-03 22:47:19 +0000 |
---|---|---|
committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2022-09-03 22:47:19 +0000 |
commit | 570773d68c526f039f7a65b099cdced95f75b002 (patch) | |
tree | 0c85c339601d83660042f064006c7fa6d1f8793f | |
parent | 2aa6ed881d22e4ed095d04ecb8a11f178274a644 (diff) | |
download | src-570773d68c526f039f7a65b099cdced95f75b002.tar.gz src-570773d68c526f039f7a65b099cdced95f75b002.zip |
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.
-rw-r--r-- | sys/dev/mgb/if_mgb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |