Skip to content

Commit

Permalink
FIX: fixing more compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Jan 2, 2019
1 parent ff51753 commit d273f4a
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
10 changes: 5 additions & 5 deletions src/core/b-init.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ extern const REBYTE Str_Banner[];

/***********************************************************************
**
*/ static void Assert_Basics()
*/ static void Assert_Basics(void)
/*
***********************************************************************/
{
Expand Down Expand Up @@ -434,7 +434,7 @@ extern const REBYTE Str_Banner[];

/***********************************************************************
**
*/ void Init_UType_Proto()
*/ void Init_UType_Proto(void)
/*
** Create prototype func object for UTypes.
**
Expand Down Expand Up @@ -560,7 +560,7 @@ extern const REBYTE Str_Banner[];

/***********************************************************************
**
*/ static void Init_System_Object()
*/ static void Init_System_Object(void)
/*
** The system object is defined in boot.r.
**
Expand Down Expand Up @@ -627,7 +627,7 @@ extern const REBYTE Str_Banner[];

/***********************************************************************
**
*/ static void Init_Contexts_Object()
*/ static void Init_Contexts_Object(void)
/*
***********************************************************************/
{
Expand Down Expand Up @@ -715,7 +715,7 @@ extern const REBYTE Str_Banner[];

/***********************************************************************
**
*/ static void Init_Codecs()
*/ static void Init_Codecs(void)
/*
***********************************************************************/
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/c-do.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ static REBVAL *Func_Word(REBINT dsf)

/***********************************************************************
**
*/ REBINT Eval_Depth()
*/ REBINT Eval_Depth(void)
/*
***********************************************************************/
{
Expand Down
4 changes: 2 additions & 2 deletions src/core/c-error.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ static REBOL_STATE Top_State; // Boot var: holds error state during boot

/***********************************************************************
**
*/ void Trap_Stack()
*/ void Trap_Stack(void)
/*
***********************************************************************/
{
Expand All @@ -222,7 +222,7 @@ static REBOL_STATE Top_State; // Boot var: holds error state during boot

/***********************************************************************
**
*/ REBCNT Stack_Depth()
*/ REBCNT Stack_Depth(void)
/*
***********************************************************************/
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/c-frame.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@

/***********************************************************************
**
*/ void Check_Bind_Table()
*/ void Check_Bind_Table(void)
/*
***********************************************************************/
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/p-event.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ REBREQ *req; //!!! move this global

/***********************************************************************
**
*/ REBVAL *Append_Event()
*/ REBVAL *Append_Event(void)
/*
** Append an event to the end of the current event port queue.
** Return a pointer to the event value.
Expand Down
2 changes: 1 addition & 1 deletion src/core/t-tuple.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
REBVAL *arg;
REBYTE *vp = NULL;
REBYTE *ap = NULL;
REBINT len;
REBINT len = 0;
REBINT alen;
REBINT v;
REBINT a;
Expand Down
2 changes: 1 addition & 1 deletion src/os/dev-net.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ static REBOOL Nonblocking_Mode(SOCKET sock)
return DR_ERROR;
}

sock->socket = result;
sock->socket = (int)result;
SET_FLAG(sock->state, RSM_OPEN);

// Set socket to non-blocking async mode:
Expand Down
2 changes: 1 addition & 1 deletion src/os/host-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ extern void Init_Ext_Test(void); // see: host-ext-test.c
extern void Open_StdIO(void);
extern void Close_StdIO(void);
extern void Put_Str(REBYTE *buf);
extern REBYTE *Get_Str();
extern REBYTE *Get_Str(void);

void Host_Crash(char *reason) {
OS_Crash(cb_cast("REBOL Host Failure"), cb_cast(reason));
Expand Down
4 changes: 2 additions & 2 deletions src/os/posix/dev-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ static int Get_File_Info(REBREQ *file)
// Fetch file size (if fails, then size is assumed zero):
if (fstat(h, &info) == 0) {
file->file.size = info.st_size;
file->file.time.l = (long)(info.st_mtime);
file->file.time.l = (i32)(info.st_mtime);
}

file->id = h;
Expand Down Expand Up @@ -417,7 +417,7 @@ static int Get_File_Info(REBREQ *file)
else file->error = -RFE_BAD_WRITE;
return DR_ERROR;
} else {
file->actual = num_bytes;
file->actual = (u32)num_bytes;
}

return DR_DONE;
Expand Down
2 changes: 1 addition & 1 deletion src/os/posix/dev-stdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ static void Close_Stdio(void)
//FLUSH();
//}

req->actual = total;
req->actual = (u32)total;
}

if (Std_Echo) {
Expand Down

0 comments on commit d273f4a

Please sign in to comment.