[sane-devel] compiling with gcc 3.3.4 on OS/2

Franz Bakan Franz Bakan" <fbakan@gmx.net
Wed, 13 Oct 2004 23:25:08 +0200 (CEST)


Hi,

I'm trying to build with gcc 3.3.4 and besides other small problems

compiling fails with:

sanei_scsi.c: In function `sanei_scsi_find_devices':
sanei_scsi.c:3857: error: assignment of read-only member `str'
sanei_scsi.c:3858: error: assignment of read-only member `str'
sanei_scsi.c:3859: error: assignment of read-only member `str'
sanei_scsi.c:3860: error: assignment of read-only member `str'
sanei_scsi.c:3861: error: assignment of read-only member `i'
sanei_scsi.c:3862: error: assignment of read-only member `i'
sanei_scsi.c:3863: error: assignment of read-only member `i'
sanei_scsi.c:3864: error: assignment of read-only member `i'

I didn't have seen this problem with earlier versions of gcc.

Is there a solution or compiler-flag to solve the problem?

BTW Sane-CVS-code still compiles fine with earlier versions of gcc.

Franz