public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* fs/xfs/xfs_mount.c:1483: warning: array subscript is above array bounds
@ 2009-05-05  8:05 Geert Uytterhoeven
  2009-05-05  8:23 ` [xfs-masters] " Christoph Hellwig
  0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2009-05-05  8:05 UTC (permalink / raw)
  To: xfs-masters; +Cc: Linux Kernel Development


http://kisskb.ellerman.id.au/kisskb/buildresult/407608/:
fs/xfs/xfs_mount.c:1483: warning: array subscript is above array bounds

xfs_mod_sb(xfs_trans_t *tp, __int64_t fields)
{
	xfs_sb_field_t  f;

	...
	first = xfs_sb_info[f].offset;
	...
}

xfs_sb_field_t is an enum with 47 values.
xfs_sb_info[] has at least 47 entries.

Is this a bogus warning?

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

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

end of thread, other threads:[~2009-05-05  8:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-05  8:05 fs/xfs/xfs_mount.c:1483: warning: array subscript is above array bounds Geert Uytterhoeven
2009-05-05  8:23 ` [xfs-masters] " Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox