Skip to contentSkip to conversation

mkfs.ubifs: fix compiler warning for WITHOUT_LZO

PATCH Superseded Daniel Walter 2 participants 2 messages Nov 12, 2015 Memory technology devices (MTD)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mkfs.ubifs: fix compiler warning for WITHOUT_LZO

Fix compiler warning for WITHOUT_LZO builds

---
 ubifs-utils/mkfs.ubifs/compr.c | 2 ++
 1 file changed, 2 insertions(+)
ubifs-utils/mkfs.ubifs/compr.c +2 -0
index d534f10..8eff186 100644
@@ -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
Signature · 1 line
2.6.2
#1 lore raw
Quoted 3 lines · Daniel Walter

Fix compiler warning for WITHOUT_LZO builds

Please add the compiler warning into the commit message such that google can find this patch by searching for the message.

Signature · 2 lines
Thanks,
//richard