[sane-devel] C undefined operations in sane-backends-1.0.7-beta1

2002-01-25 Thread abel deuring
"Jaeger, Gerhard" wrote: > > Hi there, > > let's have a look at the warnings from the Plustek backend. > The lines that produce the problem include the following statement: > > _SWAP(x,y) (x)^=(y)^=(x)^=(y) > > So what? Where's the problem here?  Aside from the problems mentioned by Tim a

[sane-devel] C undefined operations in sane-backends-1.0.7-beta1

2002-01-25 Thread Ingo Wilken
> let's have a look at the warnings from the Plustek backend. > The lines that produce the problem include the following statement: > _SWAP(x,y)(x)^=(y)^=(x)^=(y) > So what? Where's the problem here?

[sane-devel] C undefined operations in sane-backends-1.0.7-beta1

2002-01-25 Thread
Hi there, let's have a look at the warnings from the Plustek backend. The lines that produce the problem include the following statement: _SWAP(x,y) (x)^=(y)^=(x)^=(y) So what? Where's the problem here? If you take the following expamle, only _SWAP_1 produces the warning, but does in fact

[sane-devel] C undefined operations in sane-backends-1.0.7-beta1

2002-01-25 Thread Tim Waugh
--lBe/Si07TENnq+bY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 25, 2002 at 12:27:03PM +0100, Jaeger, Gerhard wrote: > Hi there,=20 >=20 > let's have a look at the warnings from the Plustek backend. > The lines that

[sane-devel] C undefined operations in sane-backends-1.0.7-beta1

2002-01-24 Thread Tim Waugh
--WulRBKvtygI9tSt8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 24, 2002 at 08:17:25PM +0100, Karsten Festag wrote: > I read somewhere that ++bit would give faster code than bit =3D bit + 1. > Now my question (as a

[sane-devel] C undefined operations in sane-backends-1.0.7-beta1

2002-01-24 Thread Henning Meier-Geinitz
Hi, On Thu, Jan 24, 2002 at 08:12:53AM +0100, Karsten Festag wrote: > I'll split > bit = ++bit % 8; > in the two lines > bit = ++bit; > bit %= 8; > > in microtek2.c > > Henning, could you do this for me in CVS? I don't thin that this makes any difference. ++bit; bit %= 8; should work.

[sane-devel] C undefined operations in sane-backends-1.0.7-beta1

2002-01-24 Thread Karsten Festag
Tim Waugh wrote: > On Thu, Jan 24, 2002 at 08:12:53AM +0100, Karsten Festag wrote: > > > in the two lines > > bit = ++bit; > > This will give the same warning of course! > o.k, got it. > > > bit %= 8; > > Why not just use bit = (bit + 1) % 8, which appears to be the intent? > I read somewhere

[sane-devel] C undefined operations in sane-backends-1.0.7-beta1

2002-01-24 Thread Tim Waugh
--sdOeJE8sLwpQaOMV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jan 24, 2002 at 08:12:53AM +0100, Karsten Festag wrote: > in the two lines > bit = ++bit; This will give the same warning of course! > bit %= 8; Why not just use bit = (bit + 1) % 8, which appea

[sane-devel] C undefined operations in sane-backends-1.0.7-beta1

2002-01-24 Thread Karsten Festag
Hi, I'll split bit = ++bit % 8; in the two lines bit = ++bit; bit %= 8; in microtek2.c Henning, could you do this for me in CVS? Thanks Karsten Tim Waugh schrieb: > On Wed, Jan 23, 2002 at 09:43:35PM +0100, Henning > Meier-Geinitz wrote: > > > This is with gcc-3.x? I don't get them with

[sane-devel] C undefined operations in sane-backends-1.0.7-beta1

2002-01-23 Thread Tim Waugh
--2mNuWrpDTYoom6W8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 23, 2002 at 09:43:35PM +0100, Henning Meier-Geinitz wrote: > This is with gcc-3.x? I don't get them with gcc 2.95.4. Yes. > > They > > are for things

[sane-devel] C undefined operations in sane-backends-1.0.7-beta1

2002-01-23 Thread Henning Meier-Geinitz
Hi, On Wed, Jan 23, 2002 at 09:55:55AM +, Tim Waugh wrote: > I get these warnings when compiling sane-backends-1.0.7-beta1. This is with gcc-3.x? I don't get them with gcc 2.95.4. > They > are for things like: > > bit = ++bit % 8; > > which are indeed undefined. Because it's not cl

[sane-devel] C undefined operations in sane-backends-1.0.7-beta1

2002-01-23 Thread Tim Waugh
--YhFoJY/gx7awiIuK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I get these warnings when compiling sane-backends-1.0.7-beta1. They are for things like: bit = ++bit % 8; which are indeed undefined. Tim. */ microtek2.c:8054: warning: operation on `bit' may be