Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

Commit

Permalink
Fixed 'function declaration is not a prototype' compiler warnings. (#138
Browse files Browse the repository at this point in the history
)

libtuv-DCO-1.0-Signed-off-by: László Langó [email protected]
  • Loading branch information
LaszloLango authored and yichoi committed May 17, 2019
1 parent c021887 commit 8b16905
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/tuv__debuglog.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ extern "C" {
#endif


void InitDebugSettings();
void ReleaseDebugSettings();
void InitDebugSettings(void);
void ReleaseDebugSettings(void);


#ifdef __cplusplus
Expand Down
4 changes: 2 additions & 2 deletions src/tuv_debuglog.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const char* tuv_debug_prefix[4] = { "", "ERR", "WRN", "INF" };
#endif // ENABLE_DEBUG_LOG


void InitDebugSettings() {
void InitDebugSettings(void) {
#ifdef ENABLE_DEBUG_LOG
const char* dbglevel = NULL;
const char* dbglogfile = NULL;
Expand Down Expand Up @@ -59,7 +59,7 @@ void InitDebugSettings() {
}


void ReleaseDebugSettings() {
void ReleaseDebugSettings(void) {
#ifdef ENABLE_DEBUG_LOG
if (tuv_log_stream != stderr && tuv_log_stream != stdout) {
fclose(tuv_log_stream);
Expand Down

0 comments on commit 8b16905

Please sign in to comment.