Reacted on some warnings of gcc -O2

This commit is contained in:
Thomas Schmitt 2006-11-11 12:39:08 +00:00
parent 68784d8703
commit bc97bdfa71

View File

@ -3436,7 +3436,7 @@ ex:;
int Cdrskin_msinfo(struct CdrskiN *skin, int flag) int Cdrskin_msinfo(struct CdrskiN *skin, int flag)
{ {
int num_sessions, session_no, ret, num_tracks; int num_sessions, session_no, ret, num_tracks;
int nwa= -123456789, lba, aux_lba; int nwa= -123456789, lba= -123456789, aux_lba;
char msg[80]; char msg[80];
enum burn_disc_status s; enum burn_disc_status s;
struct burn_drive *drive; struct burn_drive *drive;
@ -3468,6 +3468,10 @@ int Cdrskin_msinfo(struct CdrskiN *skin, int flag)
burn_track_get_entry(tracks[0],&toc_entry); burn_track_get_entry(tracks[0],&toc_entry);
lba= burn_msf_to_lba(toc_entry.pmin,toc_entry.psec,toc_entry.pframe); lba= burn_msf_to_lba(toc_entry.pmin,toc_entry.psec,toc_entry.pframe);
} }
if(lba==-123456789) {
fprintf(stderr,"cdrskin: SORRY : Cannot find any track on CD\n");
{ret= 0; goto ex;}
}
#ifdef Cdrskin_libburn_has_multI #ifdef Cdrskin_libburn_has_multI
@ -5447,7 +5451,7 @@ no_drive:;
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
int ret,exit_value= 0,lib_initialized= 0,i,result_fd; int ret,exit_value= 0,lib_initialized= 0,i,result_fd= -1;
struct CdrpreskiN *preskin= NULL; struct CdrpreskiN *preskin= NULL;
struct CdrskiN *skin= NULL; struct CdrskiN *skin= NULL;
char *lean_id= ""; char *lean_id= "";