Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 177170 Details for
Bug 253504
sane-backends-1.0.19-r2 has "dereferencing type-punned pointer" warnings with gcc 4.1.2
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to cast to (void *) and eliminate warning
sanei-type-punning-1.0.19.patch (text/plain), 1.44 KB, created by
John Whitlock
on 2009-01-03 00:20:59 UTC
(
hide
)
Description:
Patch to cast to (void *) and eliminate warning
Filename:
MIME Type:
Creator:
John Whitlock
Created:
2009-01-03 00:20:59 UTC
Size:
1.44 KB
patch
obsolete
>--- sanei/sanei_net.c 2001-05-13 09:16:59.000000000 -0700 >+++ sanei/sanei_net.c.new 2009-01-02 15:44:39.000000000 -0800 >@@ -128,7 +128,7 @@ > void > sanei_w_option_descriptor_array (Wire *w, SANE_Option_Descriptor_Array *a) > { >- sanei_w_array (w, &a->num_options, (void **) &a->desc, >+ sanei_w_array (w, &a->num_options, (void **)(void *) &a->desc, > (WireCodecFunc) sanei_w_option_descriptor_ptr, > sizeof (a->desc[0])); > } >--- sanei/sanei_wire.c 2007-01-20 14:37:57.000000000 -0800 >+++ sanei/sanei_wire.c.new 2009-01-02 15:44:03.000000000 -0800 >@@ -515,14 +515,14 @@ > break; > > case SANE_CONSTRAINT_RANGE: >- sanei_w_ptr (w, (void **) &v->constraint.range, >+ sanei_w_ptr (w, (void **)(void *) &v->constraint.range, > (WireCodecFunc) sanei_w_range, sizeof (SANE_Range)); > break; > > case SANE_CONSTRAINT_WORD_LIST: > if (w->direction != WIRE_DECODE) > len = v->constraint.word_list[0] + 1; >- sanei_w_array (w, &len, (void **) &v->constraint.word_list, >+ sanei_w_array (w, &len, (void **)(void *) &v->constraint.word_list, > w->codec.w_word, sizeof (SANE_Word)); > break; > >@@ -532,7 +532,7 @@ > for (len = 0; v->constraint.string_list[len]; ++len); > ++len; /* send NULL string, too */ > } >- sanei_w_array (w, &len, (void **) &v->constraint.string_list, >+ sanei_w_array (w, &len, (void **)(void *) &v->constraint.string_list, > w->codec.w_string, sizeof (SANE_String)); > break; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 253504
:
177169
|
177170
|
177177