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

This commit is contained in:
Thomas Schmitt 2011-07-03 19:42:04 +00:00
parent d76591cc47
commit fdccef6b53
4 changed files with 14 additions and 7 deletions

View File

@ -530,7 +530,7 @@ int Xorriso_option_biblio_file(struct XorrisO *xorriso, char *name, int flag)
int Xorriso_option_blank(struct XorrisO *xorriso, char *mode, int flag) int Xorriso_option_blank(struct XorrisO *xorriso, char *mode, int flag)
{ {
char *cmd= "-blank"; char *cmd= "-blank";
int aq_ret, ret, aq_flag= 2, mode_flag= 0, as_needed= 0, idx; int aq_ret, ret, mode_flag= 0, as_needed= 0, idx;
off_t size= 0; off_t size= 0;
if(flag&1) if(flag&1)
@ -548,7 +548,6 @@ int Xorriso_option_blank(struct XorrisO *xorriso, char *mode, int flag)
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0); Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
return(0); return(0);
} }
aq_flag= 3;
} }
ret= Xorriso_reassure(xorriso, cmd, ret= Xorriso_reassure(xorriso, cmd,
"possibly make unreadable data on outdev", 0); "possibly make unreadable data on outdev", 0);

View File

@ -125,6 +125,16 @@ int Xorriso_option_list_formats(struct XorrisO *xorriso, int flag)
} }
/* Option -list_speeds */
int Xorriso_option_list_speeds(struct XorrisO *xorriso, int flag)
{
int ret;
ret= Xorriso_list_speeds(xorriso, 0);
return(ret);
}
/* Option -list_profiles */ /* Option -list_profiles */
int Xorriso_option_list_profiles(struct XorrisO *xorriso, char *which, int Xorriso_option_list_profiles(struct XorrisO *xorriso, char *which,
int flag) int flag)
@ -459,7 +469,7 @@ int Xorriso_option_map_l(struct XorrisO *xorriso, int argc, char **argv,
int *idx, int flag) int *idx, int flag)
{ {
int ret, end_idx, optc= 0, was_failure= 1, i, fret, mode, problem_count; int ret, end_idx, optc= 0, was_failure= 1, i, fret, mode, problem_count;
int ns_flag= 2|4, nt_flag= 2, opt_args_flag= 2, made_di_array= 0; int ns_flag= 2|4, nt_flag= 2, opt_args_flag= 2;
char *source_prefix= NULL, *target_prefix= NULL, *cmd, **optv= NULL; char *source_prefix= NULL, *target_prefix= NULL, *cmd, **optv= NULL;
char *eff_source= NULL, *eff_target= NULL, *source_pt, *s_wd, *t_wd; char *eff_source= NULL, *eff_target= NULL, *source_pt, *s_wd, *t_wd;
char **eff_src_array= NULL, **eff_tgt_array= NULL; char **eff_src_array= NULL, **eff_tgt_array= NULL;
@ -527,7 +537,6 @@ int Xorriso_option_map_l(struct XorrisO *xorriso, int argc, char **argv,
ret= Xorriso_make_di_array(xorriso, 0); ret= Xorriso_make_di_array(xorriso, 0);
if(ret <= 0) if(ret <= 0)
goto ex; goto ex;
made_di_array= 1;
} }
for(i= 0; i<optc; i++) { for(i= 0; i<optc; i++) {

View File

@ -1471,7 +1471,7 @@ int Xorriso_option_update(struct XorrisO *xorriso, char *disk_path,
char *iso_path, int flag) char *iso_path, int flag)
{ {
int ret, mem_pci, zero= 0, result, uret, follow_links, do_register= 0; int ret, mem_pci, zero= 0, result, uret, follow_links, do_register= 0;
int not_in_iso= 0, not_on_disk= 0, made_di_array= 0; int not_in_iso= 0, not_on_disk= 0;
double mem_lut= 0.0, start_time; double mem_lut= 0.0, start_time;
char *ipth, *argv[6]; char *ipth, *argv[6];
char *eff_origin= NULL, *eff_dest= NULL; char *eff_origin= NULL, *eff_dest= NULL;
@ -1524,7 +1524,6 @@ int Xorriso_option_update(struct XorrisO *xorriso, char *disk_path,
if(!(xorriso->ino_behavior & 2)) { if(!(xorriso->ino_behavior & 2)) {
if(!(xorriso->di_array != NULL || (flag & 16))) { if(!(xorriso->di_array != NULL || (flag & 16))) {
/* Create all-image node array sorted by isofs.di */ /* Create all-image node array sorted by isofs.di */
made_di_array= 1;
ret= Xorriso_make_di_array(xorriso, 0); ret= Xorriso_make_di_array(xorriso, 0);
if(ret <= 0) if(ret <= 0)
goto ex; goto ex;

View File

@ -1 +1 @@
#define Xorriso_timestamP "2011.07.03.193627" #define Xorriso_timestamP "2011.07.03.194138"