diff options
-rw-r--r-- | builtin.c | 1 | ||||
-rw-r--r-- | builtin_set.c | 1 | ||||
-rw-r--r-- | highlight.c | 4 | ||||
-rw-r--r-- | input_common.c | 6 |
4 files changed, 6 insertions, 6 deletions
@@ -35,6 +35,7 @@ #include <signal.h> #include <wctype.h> #include <sys/time.h> +#include <time.h> #include "config.h" #include "util.h" diff --git a/builtin_set.c b/builtin_set.c index 20e9dfe8..b79ece13 100644 --- a/builtin_set.c +++ b/builtin_set.c @@ -224,7 +224,6 @@ static int fill_buffer_from_list(string_buffer_t *sb, array_list_t *list) static void print_variables(int include_values, int escape, int scope) { array_list_t names; - wchar_t **names_arr; int i; al_init( &names ); diff --git a/highlight.c b/highlight.c index 39385cad..8630f464 100644 --- a/highlight.c +++ b/highlight.c @@ -78,11 +78,7 @@ int highlight_get_color( int highlight ) return FISH_COLOR_NORMAL; } - int i; - int color; - return output_color_code( val ); - } diff --git a/input_common.c b/input_common.c index 0f92a314..920fbbf4 100644 --- a/input_common.c +++ b/input_common.c @@ -175,12 +175,16 @@ wchar_t input_common_readch( int timed ) while(1) { wint_t b = readb(); + char bb; + int sz; if( b == R_NULL ) return R_NULL; - sz = mbrtowc( &res, &b, 1, &state ); + bb=b; + + sz = mbrtowc( &res, &bb, 1, &state ); switch( sz ) { |