* Re: [PATCH 1/3] minix: add common functionality
[not found] ` <20110602113358.GH25562@nb.net.home>
@ 2011-06-06 13:52 ` Davidlohr Bueso
2011-06-08 11:11 ` Karel Zak
0 siblings, 1 reply; 2+ messages in thread
From: Davidlohr Bueso @ 2011-06-06 13:52 UTC (permalink / raw)
To: Karel Zak; +Cc: util-linux
On Thu, 2011-06-02 at 13:33 +0200, Karel Zak wrote:
> On Wed, Jun 01, 2011 at 06:32:56PM -0400, Davidlohr Bueso wrote:
> > Unite common features and code present in mkfs.minix and fsck.minix
> > into a single minix.h header.
>
> All three patches applied, but...
>
> CC fsck.minix.o
> In file included from fsck.minix.c:105:0:
> minix.h: In function ‘inode_blocks’:
> minix.h:126:16: warning: unused variable ‘ret’
> fsck.minix.c: In function ‘map_block2’:
> fsck.minix.c:467:9: warning: array subscript is above array bounds
> CC ismounted.o
> CCLD fsck.minix
> CC mkfs.minix.o
> In file included from mkfs.minix.c:76:0:
> minix.h: In function ‘inode_blocks’:
> minix.h:126:16: warning: unused variable ‘ret’
>
>
> ... I guess you will fix these warnings in some next cleanup patches.
>
The array subscript warning is old, here's a patch that silences the
unused variable one. I will look into the first shortly.
From: Davidlohr Bueso <dave@gnu.org>
Date: Mon, 6 Jun 2011 09:48:25 -0400
Subject: [PATCH] minix: fix warning
This patch fixes an unused variable warning.
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
---
disk-utils/minix.h | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/disk-utils/minix.h b/disk-utils/minix.h
index 4e670ba..0ebaa26 100644
--- a/disk-utils/minix.h
+++ b/disk-utils/minix.h
@@ -123,8 +123,6 @@ static inline unsigned long get_max_size(void)
static unsigned long inode_blocks(void)
{
- unsigned long ret;
-
if (fs_version == 2)
return UPPER(get_ninodes(), MINIX2_INODES_PER_BLOCK);
else
--
1.7.4.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/3] minix: add common functionality
2011-06-06 13:52 ` [PATCH 1/3] minix: add common functionality Davidlohr Bueso
@ 2011-06-08 11:11 ` Karel Zak
0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2011-06-08 11:11 UTC (permalink / raw)
To: Davidlohr Bueso; +Cc: util-linux
> disk-utils/minix.h | 2 --
> 1 files changed, 0 insertions(+), 2 deletions(-)
Applied, thanks.
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-08 11:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1306967576.1760.7.camel@offworld>
[not found] ` <20110602113358.GH25562@nb.net.home>
2011-06-06 13:52 ` [PATCH 1/3] minix: add common functionality Davidlohr Bueso
2011-06-08 11:11 ` Karel Zak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox