From a83286c5562a4ad9b21ba4b194ba768a76346edc Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sun, 3 Jul 2011 19:42:04 +0000 Subject: [PATCH] Reacted on warnings of -Wunused-but-set-variable --- libisoburn/trunk/xorriso/opts_a_c.c | 3 +-- libisoburn/trunk/xorriso/opts_i_o.c | 13 +++++++++++-- libisoburn/trunk/xorriso/opts_p_z.c | 3 +-- libisoburn/trunk/xorriso/xorriso_timestamp.h | 2 +- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/libisoburn/trunk/xorriso/opts_a_c.c b/libisoburn/trunk/xorriso/opts_a_c.c index 1820dc83..9dda0020 100644 --- a/libisoburn/trunk/xorriso/opts_a_c.c +++ b/libisoburn/trunk/xorriso/opts_a_c.c @@ -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) { 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; 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); return(0); } - aq_flag= 3; } ret= Xorriso_reassure(xorriso, cmd, "possibly make unreadable data on outdev", 0); diff --git a/libisoburn/trunk/xorriso/opts_i_o.c b/libisoburn/trunk/xorriso/opts_i_o.c index 5e1df4f3..f6eed47d 100644 --- a/libisoburn/trunk/xorriso/opts_i_o.c +++ b/libisoburn/trunk/xorriso/opts_i_o.c @@ -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 */ int Xorriso_option_list_profiles(struct XorrisO *xorriso, char *which, int flag) @@ -459,7 +469,7 @@ int Xorriso_option_map_l(struct XorrisO *xorriso, int argc, char **argv, int *idx, int flag) { 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 *eff_source= NULL, *eff_target= NULL, *source_pt, *s_wd, *t_wd; 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); if(ret <= 0) goto ex; - made_di_array= 1; } for(i= 0; iino_behavior & 2)) { if(!(xorriso->di_array != NULL || (flag & 16))) { /* Create all-image node array sorted by isofs.di */ - made_di_array= 1; ret= Xorriso_make_di_array(xorriso, 0); if(ret <= 0) goto ex; diff --git a/libisoburn/trunk/xorriso/xorriso_timestamp.h b/libisoburn/trunk/xorriso/xorriso_timestamp.h index a1551758..b9b9263e 100644 --- a/libisoburn/trunk/xorriso/xorriso_timestamp.h +++ b/libisoburn/trunk/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2011.07.03.193627" +#define Xorriso_timestamP "2011.07.03.194138"