mkfs.ubifs: fix compiler warning for WITHOUT_LZO
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_;
Signed-off-by Daniel Walter <[email protected]>
---
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
@@ -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
Brian Norris
AppliedQuoted 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 structubifs_info*c =&info_;Signed-off-by Daniel Walter <[email protected]>---
Changes since v1:
* added exact compiler warning to commit message as requested
Applied