Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 180383 Details for
Bug 257049
cdparanoia-3.10.2-r2 fails when building with GCC 4.3.3
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fixes problem by storing arrays in variables and passing that to memcpy
cdparanoia-3.10.2-gcc433.patch (text/plain), 1001 bytes, created by
Guillermo Antonio Amaral Bastidas
on 2009-01-31 08:35:35 UTC
(
hide
)
Description:
Fixes problem by storing arrays in variables and passing that to memcpy
Filename:
MIME Type:
Creator:
Guillermo Antonio Amaral Bastidas
Created:
2009-01-31 08:35:35 UTC
Size:
1001 bytes
patch
obsolete
>--- cdparanoia-III-10.2/interface/scsi_interface.c.old 2009-01-30 07:19:46.000000000 -0800 >+++ cdparanoia-III-10.2/interface/scsi_interface.c 2009-01-30 07:21:08.000000000 -0800 >@@ -674,7 +674,8 @@ > } > > for (i = first; i <= last; i++){ >- memcpy(cmd, (char []){ 0x43, 0, 0, 0, 0, 0, 0, 0, 12, 0}, 10); >+ unsigned char cmdfill[10] = { 0x43, 0, 0, 0, 0, 0, 0, 0, 12, 0}; >+ memcpy(cmd, cmdfill, 10); > cmd[1]=d->lun<<5; > cmd[6]=i; > >@@ -694,8 +695,12 @@ > (toc->start_LSB)); > } > } >+ >+ { >+ unsigned char cmdfill[10] = { 0x43, 0, 0, 0, 0, 0, 0, 0, 12, 0}; >+ memcpy(cmd, cmdfill, 10); >+ } > >- memcpy(cmd, (char []){ 0x43, 0, 0, 0, 0, 0, 0, 0, 12, 0}, 10); > cmd[1]=d->lun<<5; > cmd[6]=0xAA; > >@@ -745,7 +750,8 @@ > } > > for (i = 0; i < tracks; i++){ >- memcpy(cmd, (char[]){ 0xe5, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 10); >+ unsigned char cmdfill[10] = { 0xe5, 0, 0, 0, 0, 0, 0, 0, 0, 0}; >+ memcpy(cmd, cmdfill, 10); > cmd[5]=i+1; > cmd[8]=255; >
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 257049
: 180383