svn commit: r356169 - head/usr.sbin/fstyp
Adrian Chadd
adrian at FreeBSD.org
Sun Dec 29 06:59:09 UTC 2019
Author: adrian
Date: Sun Dec 29 06:59:09 2019
New Revision: 356169
URL: https://svnweb.freebsd.org/changeset/base/356169
Log:
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.
Modified:
head/usr.sbin/fstyp/ntfs.c
Modified: head/usr.sbin/fstyp/ntfs.c
==============================================================================
--- head/usr.sbin/fstyp/ntfs.c Sun Dec 29 05:36:01 2019 (r356168)
+++ head/usr.sbin/fstyp/ntfs.c Sun Dec 29 06:59:09 2019 (r356169)
@@ -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;
More information about the svn-src-all
mailing list