From d8784302fdb305df3f71984b19a24df1b075535b Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 2 Jul 2011 15:33:46 +0000 Subject: [PATCH] Reacted on warnings of -Wunused-but-set-variable --- libisoburn/trunk/libisoburn/burn_wrap.c | 5 ++--- libisoburn/trunk/xorriso/xorriso_timestamp.h | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/libisoburn/trunk/libisoburn/burn_wrap.c b/libisoburn/trunk/libisoburn/burn_wrap.c index f35cf00f..fe5b40fc 100644 --- a/libisoburn/trunk/libisoburn/burn_wrap.c +++ b/libisoburn/trunk/libisoburn/burn_wrap.c @@ -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) diff --git a/libisoburn/trunk/xorriso/xorriso_timestamp.h b/libisoburn/trunk/xorriso/xorriso_timestamp.h index b323b8bf..a294095a 100644 --- a/libisoburn/trunk/xorriso/xorriso_timestamp.h +++ b/libisoburn/trunk/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2011.06.28.084751" +#define Xorriso_timestamP "2011.07.02.153320"