aboutsummaryrefslogtreecommitdiff
path: root/cddl
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2023-01-30 17:31:19 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2023-01-30 17:31:19 +0000
commit9a93b6cf3dd97ca7bcb938f87afeb523d023f807 (patch)
treea422e3c5fe247863b5b8c625593eddbddb2bcd0a /cddl
parent2058f075b4afc543b8735599bea7278e37b2e9f9 (diff)
downloadsrc-9a93b6cf3dd97ca7bcb938f87afeb523d023f807.tar.gz
src-9a93b6cf3dd97ca7bcb938f87afeb523d023f807.zip
zfs: Disable -Wunused-variable for environ in main in zfs_main.c.
There is an extern declaration of the global variable environ (which has no portable header that defines it) that is unused on FreeBSD due to zfs_setproctitle_init() being a stub. Reviewed by: emaste Reported by: GCC Differential Revision: https://reviews.freebsd.org/D38231
Diffstat (limited to 'cddl')
-rw-r--r--cddl/sbin/zfs/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/cddl/sbin/zfs/Makefile b/cddl/sbin/zfs/Makefile
index 0babca17e98a..aae341f13211 100644
--- a/cddl/sbin/zfs/Makefile
+++ b/cddl/sbin/zfs/Makefile
@@ -77,3 +77,5 @@ CFLAGS+= \
LIBADD= jail avl nvpair geom uutil zfs_core spl tpool zutil zfs m crypto
LDADD+= -pthread
.include <bsd.prog.mk>
+
+CWARNFLAGS.zfs_main.c+= -Wno-unused-variable