summaryrefslogtreecommitdiff
path: root/ubifs-utils/mkfs.ubifs
diff options
context:
space:
mode:
authorDaniel Walter <dwalter@sigma-star.at>2015-11-12 12:52:09 +0100
committerBrian Norris <computersforpeace@gmail.com>2015-11-12 10:20:42 -0800
commit594cde6b837361ab83917d43c0caa179b171db19 (patch)
tree1685cd969a33f8b17e30595fd22845793d5f2a2e /ubifs-utils/mkfs.ubifs
parent701580c29c3526ce1ccaeae335733dd2fa5bce8c (diff)
mkfs.ubifs: fix compiler warning for WITHOUT_LZO
Fix compiler warning about an unused variable. ubifs-utils/mkfs.ubifs/compr.c:41:27: warning: ā€˜cā€™ defined but not used [-Wunused-variable] static struct ubifs_info *c = &info_; Signed-off-by: Daniel Walter <dwalter@sigma-star.at> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'ubifs-utils/mkfs.ubifs')
-rw-r--r--ubifs-utils/mkfs.ubifs/compr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ubifs-utils/mkfs.ubifs/compr.c b/ubifs-utils/mkfs.ubifs/compr.c
index d534f10..8eff186 100644
--- a/ubifs-utils/mkfs.ubifs/compr.c
+++ b/ubifs-utils/mkfs.ubifs/compr.c
@@ -38,7 +38,9 @@
static void *lzo_mem;
static unsigned long long errcnt = 0;
+#ifndef WITHOUT_LZO
static struct ubifs_info *c = &info_;
+#endif
#define DEFLATE_DEF_LEVEL Z_DEFAULT_COMPRESSION
#define DEFLATE_DEF_WINBITS 11