mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 14:01:20 -03:00
Fix compiler warnings
darcs-hash:20050924195558-ac50b-1ad53fa963f71ce5b4aa42490789add2a3d48ab3.gz
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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 );
|
||||||
|
|||||||
@@ -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 );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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 )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user