This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: subscripted value is neither array nor pointer


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]