[sane-devel] hs2p backend

m. allan noah kitno455 at gmail.com
Tue Nov 20 21:56:19 UTC 2007


On Nov 20, 2007 3:51 PM,  <jazz_johnson at verizon.net> wrote:
> Are there any option I need to pass to configure or gcc
> in order to generate the C90/C99 warnings?
> I've compiled hs2p backend on both a Pentium3 x86 and
> an amd64 x86_64 platform but can't seem to generate the warnings in your
> logfile.

at this point, i think it has something to do with my build of gcc,
because our versions dont look all the different, but i'm no expert
there.

$ gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada
--enable-java-awt=gtk --disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
--with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20070626 (Red Hat 4.1.2-13)

>
> Anyhow,
> I've replaced printf("%zd", size_t(x)) with printf("%lu", (u_long)size_t(x))
> and printf("%d", sizeof(x)) with printf("%lu", (u_long)sizeof(x))
> which should clear up some ISO C90 warnings.
> and
> I've changed free( (void *)dev->sane.name) to free( (char*) dev->sane.name)
> and
> I've changed max_string_size(SANE_String strings[]) to
> max_string_size(SANE_String_Const strings[])
>
>
> I've checked out today's cvs version of sane-backends
> and made a new patch between my current hs2p backend and the cvs backend:
>
> diff -r -N -u $CVS $CUR | gzip -c - >hs2p_patch.gz
> which I've placed at
> http://www.acjlaw.net:8080/~jeremy/Ricoh/hs2p_sane_backend/hs2p_patch.gz
>
> This patch builds for me on x86 and x86_64 without any errors or warnings.
> I've placed the x86_log.gz and x86_64_log.gz at
> http://www.acjlaw.net:8080/~jeremy/Ricoh/hs2p_sane_backend/
>

ok. i wont have access to my 64 bit machine til latter, but attached
is the log from the 32 bit compiler above with your latest patch.
looks pretty good, just a couple of issues.

allan

-- 
"The truth is an offense, but not a sin"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hs2p.log
Type: text/x-log
Size: 1024 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20071120/59de3f8a/attachment.bin 


More information about the sane-devel mailing list