This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: subscripted value is neither array nor pointer
- To: Peter Jordan <pjordan at noname dot blackwire dot com>
- Subject: Re: subscripted value is neither array nor pointer
- From: Andreas Schwab <schwab at suse dot de>
- Date: Mon, 13 Mar 2000 11:36:52 +0100
- Cc: gcc at gcc dot gnu dot org
- References: <20000312225330.A29006@noname.blackwire.com>
Peter Jordan <pjordan@noname.blackwire.com> writes:
|> Hi,
|>
|>
|> ../../../lib/ext2fs/swapfs.c: In function `ext2fs_swap_inode':
|> ../../../lib/ext2fs/swapfs.c:119: subscripted value is neither array nor pointer
|>
|> Ran into problems when trying to build e2fsprogs-1.18.tar.gz.
|>
|> Went back to e2fsprogs-1.12 and e2fsprogs-1.15 and had the same problem.
|> The lines in question haven't changed.
|>
|> They are (119-121) :
|>
|> t->osd2.linux2.l_i_reserved2[0] =
|> ext2fs_swab32(f->osd2.linux2.l_i_reserved2[0]);
|> t->osd2.linux2.l_i_reserved2[1] =
|> ext2fs_swab32(f->osd2.linux2.l_i_reserved2[1]);
This is just a discrepancy between the kernel headers and e2fsprogs, the
latter must be updated. Look at <linux/ext2_fs.h>.
Andreas.
--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg