--PEIAKu/WMn1b1Hv9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable
On Sat, Oct 19, 2002 at 08:10:46AM -0400, Karl Heinz Kremer wrote: > > > I did however get one error message while > > > compiling dc25.c: > > >=20 > > > gcc -c -g -O2 -W -Wall -Wcast-align -Wcast-qual -Wmissing-declaration= s -Wmi > > > ssing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -p= edanti > > > c -ansi -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOUR= CE -DP > > > ATH_SANE_CONFIG_DIR=3D/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=3D/u= sr/local/s > > > hare -DV_MAJOR=3D1 -DV_MINOR=3D0 -DBACKEND_NAME=3Ddc25 -DLIBDIR=3D/us= r/local/lib/sa > > > ne dc25.c -fno-common -DPIC > > > dc25.c:2757: syntax error, found `fd' > > > dc25.c:2757: illegal function definition, found `)' > >=20 > > Maybe that gcc doesn't like the UNUSEDARG? However I don't know why it > > complains about the last usage in that file. I looked at this again and found out that when I change the line in question from=20 sane_get_select_fd (SANE_Handle UNUSEDARG handle, SANE_Int * UNUSEDARG fd) to sane_get_select_fd (SANE_Handle UNUSEDARG handle, SANE_Int UNUSEDARG * fd) (moved the asterisk after the UNUSEDARG macro), then it compiles. It still compiles on my Linux system (with gcc 2.95.3). I don't have the hardware to verify that this does not change the behavior. The fd argument is=20 the only pointer that is used with UNUSEDARG. This explains why this error only shows up with the last instance of UNUSEDARG in this file. Karl Heinz --=20 Karl Heinz Kremer k...@khk.net PGP Key at http://www.khk.net/download/khk.asc EPSON Sane Backend: http://www.khk.net --PEIAKu/WMn1b1Hv9 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9sV95xejv3RfKrhsRAmmqAJ9rMeornqJXqXakaQA/vq6YRHWp9wCePGTr e1przozJScIWK54KVkEyP+U= =uFFm -----END PGP SIGNATURE----- --PEIAKu/WMn1b1Hv9--