From ffd4bf82deba21567ae8a63dc483835efc54088a Mon Sep 17 00:00:00 2001 From: Ian Lepore Date: Sat, 14 Jul 2018 16:33:11 +0000 Subject: [PATCH] Eliminate an unused var warning-error; the var is used only when parsing linux-style boot args, so wrap it in the appropriate ifdef. --- sys/arm/arm/machdep_boot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/arm/arm/machdep_boot.c b/sys/arm/arm/machdep_boot.c index 909788c62f8..d79c2c0bbb1 100644 --- a/sys/arm/arm/machdep_boot.c +++ b/sys/arm/arm/machdep_boot.c @@ -68,7 +68,9 @@ __FBSDID("$FreeBSD$"); #define debugf(fmt, args...) #endif +#ifdef LINUX_BOOT_ABI static char static_kenv[4096]; +#endif extern int *end;