Reacted on compiler -O2 warnings
This commit is contained in:
parent
090861567d
commit
854a806292
@ -1 +1 @@
|
|||||||
#define Cdrskin_timestamP "2007.09.12.104626"
|
#define Cdrskin_timestamP "2007.09.12.115850"
|
||||||
|
@ -376,7 +376,7 @@ int mmc_get_nwa(struct burn_drive *d, int trackno, int *lba, int *nwa)
|
|||||||
/* void mmc_close_disc(struct burn_drive *d, struct burn_write_opts *o) */
|
/* void mmc_close_disc(struct burn_drive *d, struct burn_write_opts *o) */
|
||||||
void mmc_close_disc(struct burn_write_opts *o)
|
void mmc_close_disc(struct burn_write_opts *o)
|
||||||
{
|
{
|
||||||
struct burn_drive *d;
|
struct burn_drive *d = o->drive;
|
||||||
|
|
||||||
if (mmc_function_spy(d, "mmc_close_disc") <= 0)
|
if (mmc_function_spy(d, "mmc_close_disc") <= 0)
|
||||||
return;
|
return;
|
||||||
@ -387,7 +387,6 @@ void mmc_close_disc(struct burn_write_opts *o)
|
|||||||
|
|
||||||
/* ts A61009 : made impossible by removing redundant parameter d */
|
/* ts A61009 : made impossible by removing redundant parameter d */
|
||||||
/* a ssert(o->drive == d); */
|
/* a ssert(o->drive == d); */
|
||||||
d = o->drive;
|
|
||||||
|
|
||||||
o->multi = 0;
|
o->multi = 0;
|
||||||
spc_select_write_params(d, o);
|
spc_select_write_params(d, o);
|
||||||
@ -398,7 +397,7 @@ void mmc_close_disc(struct burn_write_opts *o)
|
|||||||
/* void mmc_close_session(struct burn_drive *d, struct burn_write_opts *o) */
|
/* void mmc_close_session(struct burn_drive *d, struct burn_write_opts *o) */
|
||||||
void mmc_close_session(struct burn_write_opts *o)
|
void mmc_close_session(struct burn_write_opts *o)
|
||||||
{
|
{
|
||||||
struct burn_drive *d;
|
struct burn_drive *d = o->drive;
|
||||||
|
|
||||||
if (mmc_function_spy(d, "mmc_close_session") <= 0)
|
if (mmc_function_spy(d, "mmc_close_session") <= 0)
|
||||||
return;
|
return;
|
||||||
@ -409,7 +408,6 @@ void mmc_close_session(struct burn_write_opts *o)
|
|||||||
|
|
||||||
/* ts A61009 : made impossible by removing redundant parameter d */
|
/* ts A61009 : made impossible by removing redundant parameter d */
|
||||||
/* a ssert(o->drive == d); */
|
/* a ssert(o->drive == d); */
|
||||||
d = o->drive;
|
|
||||||
|
|
||||||
o->multi = 3;
|
o->multi = 3;
|
||||||
spc_select_write_params(d, o);
|
spc_select_write_params(d, o);
|
||||||
@ -521,7 +519,7 @@ static int mmc_wait_for_buffer_free(struct burn_drive *d, struct buffer *buf)
|
|||||||
/* There is need to inquire the buffer fill */
|
/* There is need to inquire the buffer fill */
|
||||||
d->pessimistic_writes++;
|
d->pessimistic_writes++;
|
||||||
min_fac = ((double) d->wfb_min_percent) / 100.0;
|
min_fac = ((double) d->wfb_min_percent) / 100.0;
|
||||||
gettimeofday(&t0,&dummy_tz);
|
gettimeofday(&t0, &dummy_tz);
|
||||||
#ifdef Libburn_mmc_wfb_debuG
|
#ifdef Libburn_mmc_wfb_debuG
|
||||||
sleeplist[0]= 0;
|
sleeplist[0]= 0;
|
||||||
sprintf(sleeplist,"(%d%s %d)",
|
sprintf(sleeplist,"(%d%s %d)",
|
||||||
|
@ -142,7 +142,7 @@ int spc_get_erase_progress(struct burn_drive *d)
|
|||||||
struct buffer b;
|
struct buffer b;
|
||||||
|
|
||||||
if (mmc_function_spy(d, "get_erase_progress") <= 0)
|
if (mmc_function_spy(d, "get_erase_progress") <= 0)
|
||||||
return;
|
return 0;
|
||||||
|
|
||||||
spc_request_sense(d, &b);
|
spc_request_sense(d, &b);
|
||||||
return (b.data[16] << 8) | b.data[17];
|
return (b.data[16] << 8) | b.data[17];
|
||||||
|
Loading…
Reference in New Issue
Block a user