[sane-devel] Question regarding compiler warnings in sane-backends/sanei
Stephen Torri
storri at ameritech.net
Thu Dec 6 03:42:33 GMT 2001
I keep getting warnings for when we cast a SANE_String_Const into a
SANE_String*. For example looking at sanei_wire.c in the sane-backends at
line 432:
sanei_w_string(w, (SANE_String *) & v->name);
I cannot see a reason why gcc-2.96-98 gives me a warning for this. Does
anyone have an idea why this is coming up?
Would it be wrong if we are using SANE_String for the name string in the
SANE_DEVICE or should we change the arguments of sanei_w_string to accept
a SANE_String_Const? If we are changing the value of name then it makes
sense to do the later. Vice versa.
Stephen
On Sat, 1 Dec 2001, Henning Meier-Geinitz wrote:
> Hi,
>
> On Fri, Nov 30, 2001 at 11:24:10PM -0500, Stephen Torri wrote:
> > * Fri Nov 30 2001 Stephen Torri <storri at ameritech.net> 1.0.6 (CVS)
> > - removed warning: `dev_io_fd' defined but not used. Variable
> > used only by FreeBSD. Added test for FreeBSD.
>
> Thank you very much. I have applied this to CVS.
>
> Bye,
> Henning
> _______________________________________________
> Sane-devel mailing list
> Sane-devel at www.mostang.com
> http://www.mostang.com/mailman/listinfo/sane-devel
>
More information about the sane-devel
mailing list