Skip to content

Commit ff51753

Browse files
committed
FIX: fixing some "This function declaration is not a prototype" warnings
1 parent e652dc9 commit ff51753

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

src/core/a-lib.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ extern int Do_Callback(REBSER *obj, u32 name, RXIARG *args, RXIARG *result);
170170

171171
/***********************************************************************
172172
**
173-
*/ RL_API void RL_Reset()
173+
*/ RL_API void RL_Reset(void)
174174
/*
175175
** Reset REBOL (not implemented)
176176
**

src/os/posix/dev-stdio.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ typedef struct term_data {
7070

7171
STD_TERM *Term_IO;
7272

73-
extern STD_TERM *Init_Terminal();
73+
extern STD_TERM *Init_Terminal(void);
7474
extern void Quit_Terminal(STD_TERM*);
7575
extern int Read_Line(STD_TERM*, char*, int);
7676
#endif

src/os/posix/host-lib.c

+6-5
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
#include <time.h>
6161
#include <string.h>
6262
#include <errno.h>
63+
#include <signal.h> //for kill
6364

6465
#ifndef timeval // for older systems
6566
#include <sys/time.h>
@@ -142,7 +143,7 @@ int pipe2(int pipefd[2], int flags); //to avoid "implicit-function-declaration"
142143

143144
/***********************************************************************
144145
**
145-
*/ REBINT OS_Get_PID()
146+
*/ REBINT OS_Get_PID(void)
146147
/*
147148
** Return the current process ID
148149
**
@@ -153,7 +154,7 @@ int pipe2(int pipefd[2], int flags); //to avoid "implicit-function-declaration"
153154

154155
/***********************************************************************
155156
**
156-
*/ REBINT OS_Get_UID()
157+
*/ REBINT OS_Get_UID(void)
157158
/*
158159
** Return the real user ID
159160
**
@@ -186,7 +187,7 @@ int pipe2(int pipefd[2], int flags); //to avoid "implicit-function-declaration"
186187

187188
/***********************************************************************
188189
**
189-
*/ REBINT OS_Get_GID()
190+
*/ REBINT OS_Get_GID(void)
190191
/*
191192
** Return the real group ID
192193
**
@@ -219,7 +220,7 @@ int pipe2(int pipefd[2], int flags); //to avoid "implicit-function-declaration"
219220

220221
/***********************************************************************
221222
**
222-
*/ REBINT OS_Get_EUID()
223+
*/ REBINT OS_Get_EUID(void)
223224
/*
224225
** Return the effective user ID
225226
**
@@ -252,7 +253,7 @@ int pipe2(int pipefd[2], int flags); //to avoid "implicit-function-declaration"
252253

253254
/***********************************************************************
254255
**
255-
*/ REBINT OS_Get_EGID()
256+
*/ REBINT OS_Get_EGID(void)
256257
/*
257258
** Return the effective group ID
258259
**

0 commit comments

Comments
 (0)