Reacted on warnings of -Wunused-but-set-variable

This commit is contained in:
Thomas Schmitt 2011-07-02 15:33:46 +00:00
parent 1c9a35584a
commit 0297b72137
2 changed files with 3 additions and 4 deletions

View File

@ -434,7 +434,8 @@ static int isoburn_welcome_media(struct isoburn **o, struct burn_drive *d,
for(session_no= 0; session_no < num_sessions; session_no++) {
tracks= isoburn_toc_session_get_tracks(sessions[session_no],
&num_tracks);
track_count+= num_tracks;
if(tracks != NULL)
track_count+= num_tracks;
}
isoburn_toc_disc_free(disc);
}
@ -1210,7 +1211,6 @@ int isoburn_read_iso_head(struct burn_drive *d, int lba,
unsigned char *buffer= NULL;
int ret, info_mode, capacity, role;
off_t data_count, to_read;
enum burn_disc_status s;
struct isoburn *o;
buffer= calloc(1, 64 * 1024);
@ -1223,7 +1223,6 @@ int isoburn_read_iso_head(struct burn_drive *d, int lba,
memcpy(buffer, info, 64*1024);
} else {
memset(buffer, 0, 64 * 1024);
s= isoburn_disc_get_status(d);
role = burn_drive_get_drive_role(d);
if (role == 3 || role == 5)

View File

@ -1 +1 @@
#define Xorriso_timestamP "2011.06.28.084751"
#define Xorriso_timestamP "2011.07.02.153320"