Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 May 2016 11:20:21 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r299660 - head/sys/boot/i386/zfsboot
Message-ID:  <201605131120.u4DBKLcQ015860@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Fri May 13 11:20:21 2016
New Revision: 299660
URL: https://svnweb.freebsd.org/changeset/base/299660

Log:
  Put slba and elba under LOADER_GELI_SUPPORT ifdef to mute warning about them being
  unused in the non-GELI case
  
  MFC after: 1 week
  Reported by: clang
  Sponsored by: EMC / Isilon Storage Division

Modified:
  head/sys/boot/i386/zfsboot/zfsboot.c

Modified: head/sys/boot/i386/zfsboot/zfsboot.c
==============================================================================
--- head/sys/boot/i386/zfsboot/zfsboot.c	Fri May 13 11:18:29 2016	(r299659)
+++ head/sys/boot/i386/zfsboot/zfsboot.c	Fri May 13 11:20:21 2016	(r299660)
@@ -398,7 +398,9 @@ probe_drive(struct dsk *dsk)
     struct gpt_ent *ent;
     unsigned part, entries_per_sec;
 #endif
+#ifdef LOADER_GELI_SUPPORT
     daddr_t slba, elba;
+#endif
     struct dos_partition *dp;
     char *sec;
     unsigned i;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605131120.u4DBKLcQ015860>