From 939a8f1a5b8a7b419cf4c44295e0de57a5c37500 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlo=20Marcelo=20Arenas=20Bel=C3=B3n?= Date: Wed, 6 Sep 2017 17:09:41 -0700 Subject: [PATCH] windows: fix compilation warnings Refs: https://github.com/libuv/libuv/pull/1530 PR-URL: https://github.com/libuv/libuv/pull/1542 Reviewed-By: Ben Noordhuis Reviewed-By: Refael Ackermann Reviewed-By: Colin Ihrig --- src/win/error.c | 2 +- src/win/signal.c | 2 +- src/win/timer.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/win/error.c b/src/win/error.c index 642d1112e..9b03bfef6 100644 --- a/src/win/error.c +++ b/src/win/error.c @@ -58,7 +58,7 @@ void uv_fatal_error(const int errorno, const char* syscall) { LocalFree(buf); } - *((char*)NULL) = 0xff; /* Force debug break */ + DebugBreak(); abort(); } diff --git a/src/win/signal.c b/src/win/signal.c index 7b42dd992..a174da1f7 100644 --- a/src/win/signal.c +++ b/src/win/signal.c @@ -64,7 +64,7 @@ static int uv__signal_compare(uv_signal_t* w1, uv_signal_t* w2) { } -RB_GENERATE_STATIC(uv_signal_tree_s, uv_signal_s, tree_entry, uv__signal_compare); +RB_GENERATE_STATIC(uv_signal_tree_s, uv_signal_s, tree_entry, uv__signal_compare) /* diff --git a/src/win/timer.c b/src/win/timer.c index 27ca7716a..7e006fedf 100644 --- a/src/win/timer.c +++ b/src/win/timer.c @@ -56,7 +56,7 @@ static int uv_timer_compare(uv_timer_t* a, uv_timer_t* b) { } -RB_GENERATE_STATIC(uv_timer_tree_s, uv_timer_s, tree_entry, uv_timer_compare); +RB_GENERATE_STATIC(uv_timer_tree_s, uv_timer_s, tree_entry, uv_timer_compare) int uv_timer_init(uv_loop_t* loop, uv_timer_t* handle) {