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

This commit is contained in:
Thomas Schmitt 2011-07-04 10:59:21 +00:00
parent 8deeff4de8
commit 249f13b6ed
2 changed files with 2 additions and 4 deletions

View File

@ -1695,7 +1695,7 @@ int Xorriso_blank_as_needed(struct XorrisO *xorriso, int flag)
int Xorriso_burn_track(struct XorrisO *xorriso, off_t write_start_address, int Xorriso_burn_track(struct XorrisO *xorriso, off_t write_start_address,
char *track_source, off_t tsize, int flag) char *track_source, off_t tsize, int flag)
{ {
int ret, fd, unpredicted_size, profile_number, is_cd= 0, dummy, nwa= -1; int ret, fd, profile_number, is_cd= 0, dummy, nwa= -1;
int isosize= -1, do_isosize, is_bd= 0, signal_mode; int isosize= -1, do_isosize, is_bd= 0, signal_mode;
struct burn_drive_info *dinfo; struct burn_drive_info *dinfo;
struct burn_drive *drive; struct burn_drive *drive;
@ -1755,8 +1755,6 @@ int Xorriso_burn_track(struct XorrisO *xorriso, off_t write_start_address,
if((stbuf.st_mode&S_IFMT)==S_IFREG) if((stbuf.st_mode&S_IFMT)==S_IFREG)
fixed_size= stbuf.st_size; fixed_size= stbuf.st_size;
} }
if(fixed_size==0)
unpredicted_size= 1;
if(fd>=0) if(fd>=0)
data_src= burn_fd_source_new(fd, -1, fixed_size); data_src= burn_fd_source_new(fd, -1, fixed_size);

View File

@ -1 +1 @@
#define Xorriso_timestamP "2011.07.04.105800" #define Xorriso_timestamP "2011.07.04.105854"