From 712ecf55f8847f66a81826444f88cc76fc68fef2 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 18 Nov 2013 14:06:07 +0000 Subject: [PATCH] Reacted on warning about unused variable if no readline is enabled --- xorriso/text_io.c | 6 +++++- xorriso/xorriso_timestamp.h | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/xorriso/text_io.c b/xorriso/text_io.c index 17b9b6a2..7728ce9e 100644 --- a/xorriso/text_io.c +++ b/xorriso/text_io.c @@ -72,9 +72,10 @@ int Xorriso_dialog_input(struct XorrisO *xorriso, char line[], int linesize, */ { char *cpt= NULL, **argv= NULL, *linept, *why_append= ""; - int ret, argc= 0, base_length= 0, l, append_line, no_history= 0; + int ret, argc= 0, base_length= 0, l, append_line; #ifdef Xorriso_with_readlinE static char last_input[SfileadrL]= {""}; + int no_history= 0; #endif /* ! Xorriso_with_readlinE */ double tdiff; struct timeval tv; @@ -86,7 +87,10 @@ int Xorriso_dialog_input(struct XorrisO *xorriso, char line[], int linesize, fflush(stdout); linept= line; + +#ifdef Xorriso_with_readlinE no_history= (flag & 1) || xorriso->use_stdin; +#endif get_single:; diff --git a/xorriso/xorriso_timestamp.h b/xorriso/xorriso_timestamp.h index 411b3576..c6906f77 100644 --- a/xorriso/xorriso_timestamp.h +++ b/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2013.11.17.120422" +#define Xorriso_timestamP "2013.11.18.140456"