All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] mkfs.ubifs: fix compiler warning for WITHOUT_LZO
@ 2015-11-12 11:52 Daniel Walter
  2015-11-12 18:22 ` Brian Norris
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Walter @ 2015-11-12 11:52 UTC (permalink / raw)
  To: linux-mtd; +Cc: richard

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>
---
Changes since v1:
   * added exact compiler warning to commit message as requested
---
 ubifs-utils/mkfs.ubifs/compr.c | 2 ++
 1 file changed, 2 insertions(+)

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
-- 
2.6.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] mkfs.ubifs: fix compiler warning for WITHOUT_LZO
  2015-11-12 11:52 [PATCH v2] mkfs.ubifs: fix compiler warning for WITHOUT_LZO Daniel Walter
@ 2015-11-12 18:22 ` Brian Norris
  0 siblings, 0 replies; 2+ messages in thread
From: Brian Norris @ 2015-11-12 18:22 UTC (permalink / raw)
  To: Daniel Walter; +Cc: linux-mtd, richard

On Thu, Nov 12, 2015 at 12:52:09PM +0100, Daniel Walter wrote:
> 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>
> ---
> Changes since v1:
>    * added exact compiler warning to commit message as requested

Applied

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-12 18:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-12 11:52 [PATCH v2] mkfs.ubifs: fix compiler warning for WITHOUT_LZO Daniel Walter
2015-11-12 18:22 ` Brian Norris

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.