Reacted on compiler -O2 warnings

This commit is contained in:
Thomas Schmitt 2007-09-12 11:57:49 +00:00
parent 090861567d
commit 854a806292
3 changed files with 5 additions and 7 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2007.09.12.104626" #define Cdrskin_timestamP "2007.09.12.115850"

View File

@ -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);

View File

@ -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];