Skip to contentSkip to conversation

mkfs.ubifs: fix compiler warning for WITHOUT_LZO

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

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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_;

---
Changes since v1:
* added exact compiler warning to commit message as requested

---
 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
Applied
#1 lore raw
Quoted 10 lines · Daniel Walter

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_;

---
Changes since v1:
* added exact compiler warning to commit message as requested

Applied