From 350bfebba9ec76f8a5251027271a481c314bd6a6 Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Sun, 29 Dec 2019 06:59:09 +0000 Subject: [PATCH] Make this compile under external gcc toolchain if WITH_ICONV isn't defined. This quietens a bunch of unused variable warnings that are treated as errors. --- usr.sbin/fstyp/ntfs.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usr.sbin/fstyp/ntfs.c b/usr.sbin/fstyp/ntfs.c index 440f5716392f..0ce1fa81181a 100644 --- a/usr.sbin/fstyp/ntfs.c +++ b/usr.sbin/fstyp/ntfs.c @@ -134,12 +134,15 @@ int fstyp_ntfs(FILE *fp, char *label, size_t size) { struct ntfs_bootfile *bf; + char *filerecp; +#ifdef WITH_ICONV struct ntfs_filerec *fr; struct ntfs_attr *atr; off_t voloff; - char *filerecp, *ap; + char *ap; int8_t mftrecsz; int recsize; +#endif /* WITH_ICONV */ filerecp = NULL;