]> www.infradead.org Git - mtd-utils.git/commitdiff
mkfs.ubifs: fix compiler warning for WITHOUT_LZO
authorDaniel Walter <dwalter@sigma-star.at>
Thu, 12 Nov 2015 11:52:09 +0000 (12:52 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 12 Nov 2015 18:20:42 +0000 (10:20 -0800)
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>
ubifs-utils/mkfs.ubifs/compr.c

index d534f105f04c3cf74a34c2d20680e67876e7b932..8eff1865d96efdea53867f98c19c0ccb7949ceb0 100644 (file)
@@ -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