diff mbox

mkfs.ubifs: fix compiler warning for WITHOUT_LZO

Message ID 20151112112014.GA22505@dw-nb.local
State Accepted
Commit 594cde6b837361ab83917d43c0caa179b171db19
Delegated to: Richard Weinberger
Headers show

Commit Message

Daniel Walter Nov. 12, 2015, 11:20 a.m. UTC
Fix compiler warning for WITHOUT_LZO builds 

Signed-off-by: Daniel Walter <dwalter@sigma-star.at>
---
 ubifs-utils/mkfs.ubifs/compr.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Richard Weinberger Nov. 12, 2015, 11:38 a.m. UTC | #1
On Thu, Nov 12, 2015 at 12:20 PM, Daniel Walter <dwalter@sigma-star.at> wrote:
> Fix compiler warning for WITHOUT_LZO builds
>
> Signed-off-by: Daniel Walter <dwalter@sigma-star.at>

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

Patch

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