Fix compiler warnings

darcs-hash:20050924195558-ac50b-1ad53fa963f71ce5b4aa42490789add2a3d48ab3.gz
This commit is contained in:
axel
2005-09-25 05:55:58 +10:00
parent 0085156a05
commit fcc980a519
4 changed files with 6 additions and 6 deletions

View File

@@ -35,6 +35,7 @@
#include <signal.h> #include <signal.h>
#include <wctype.h> #include <wctype.h>
#include <sys/time.h> #include <sys/time.h>
#include <time.h>
#include "config.h" #include "config.h"
#include "util.h" #include "util.h"

View File

@@ -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) static void print_variables(int include_values, int escape, int scope)
{ {
array_list_t names; array_list_t names;
wchar_t **names_arr;
int i; int i;
al_init( &names ); al_init( &names );

View File

@@ -78,11 +78,7 @@ int highlight_get_color( int highlight )
return FISH_COLOR_NORMAL; return FISH_COLOR_NORMAL;
} }
int i;
int color;
return output_color_code( val ); return output_color_code( val );
} }

View File

@@ -175,12 +175,16 @@ wchar_t input_common_readch( int timed )
while(1) while(1)
{ {
wint_t b = readb(); wint_t b = readb();
char bb;
int sz; int sz;
if( b == R_NULL ) if( b == R_NULL )
return R_NULL; return R_NULL;
sz = mbrtowc( &res, &b, 1, &state ); bb=b;
sz = mbrtowc( &res, &bb, 1, &state );
switch( sz ) switch( sz )
{ {