git: c9bbf99be038 - main - qlnx: Disable unused by set warnings for ecore_ll2.c.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 08 Apr 2022 00:03:34 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=c9bbf99be03803394b415567d1721b7d9a9b3296 commit c9bbf99be03803394b415567d1721b7d9a9b3296 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-08 00:01:28 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-08 00:01:28 +0000 qlnx: Disable unused by set warnings for ecore_ll2.c. The OSAL_SPIN_LOCK_IRQSAVE macros take a flags argument that is unused on FreeBSD (but used on other platforms). --- sys/modules/qlnx/qlnxe/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/modules/qlnx/qlnxe/Makefile b/sys/modules/qlnx/qlnxe/Makefile index 718040776496..5d1d0eefec64 100644 --- a/sys/modules/qlnx/qlnxe/Makefile +++ b/sys/modules/qlnx/qlnxe/Makefile @@ -91,3 +91,4 @@ CFLAGS += -DCONFIG_ECORE_RDMA CFLAGS += -DQLNX_ENABLE_IWARP CWARNFLAGS+= -Wno-cast-qual +CWARNFLAGS.ecore_ll2.c+= ${NO_WUNUSED_BUT_SET_VARIABLE}