[sane-devel] sane-canon: Endian inverted data when scanning
48bbp raw mode pnm
Henning Meier-Geinitz
henning at meier-geinitz.de
Wed Dec 28 14:41:02 UTC 2005
Hi,
On Wed, Dec 28, 2005 at 01:43:55PM +0100, Jean-Michel Vourgère wrote:
> I'm attaching a patch that I know to work here: It simply adds a #if,
> patch the comment, and moves the definition of b later to avoid a
> compilation warning (unused variable on little-endian comp's).
This won't compile on older C compilers on big endian machines:
canon-sane.c:1792: warning: ISO C90 forbids mixed declarations and code
The problem is the variable definition after the code. Adding a
separate #ifdef for u_char b and moving it back to the top should work.
Bye,
henning
More information about the sane-devel
mailing list