Author: cem
Date: Fri Oct 4 21:47:09 2019
New Revision: 353115
URL: https://svnweb.freebsd.org/changeset/base/353115
Log:
nvdimm(4): Fix Clang build after r353110
Clang spuriously warns about some well-defined C99 static initializers.
Mute it.
X-MFC-With: r353110
Modified:
head/sys/modules/nvdimm/Makefile
Modified: head/sys/modules/nvdimm/Makefile
==============================================================================
--- head/sys/modules/nvdimm/Makefile Fri Oct 4 21:46:11 2019
(r353114)
+++ head/sys/modules/nvdimm/Makefile Fri Oct 4 21:47:09 2019
(r353115)
@@ -14,3 +14,8 @@ SRCS+= acpi_if.h bus_if.h device_if.h
SRCS+= opt_acpi.h opt_ddb.h
.include <bsd.kmod.mk>
+
+# Mute spurious Clang warning.
+.if ${COMPILER_TYPE} == "clang"
+CWARNFLAGS.nvdimm_e820.c+= -Wno-missing-braces
+.endif
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"