mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-18 18:02:47 +08:00
Fix compiler warnings
darcs-hash:20050924195558-ac50b-1ad53fa963f71ce5b4aa42490789add2a3d48ab3.gz
This commit is contained in:
parent
0085156a05
commit
fcc980a519
|
@ -35,6 +35,7 @@
|
|||
#include <signal.h>
|
||||
#include <wctype.h>
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "util.h"
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -78,11 +78,7 @@ int highlight_get_color( int highlight )
|
|||
return FISH_COLOR_NORMAL;
|
||||
}
|
||||
|
||||
int i;
|
||||
int color;
|
||||
|
||||
return output_color_code( val );
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user