From db1dccb9ecd33d35e1b3b4ff6a9d37828adea974 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 9 Aug 2013 19:03:23 +0200 Subject: [PATCH] windows: fix missing return value warning Fixes the following warning: src\uv-common.c(476): warning C4715: 'uv__getaddrinfo_translate_error' : not all control paths return a value The function never returns - the final statement is a call to abort() - but it seems MSVC's program flow analyzer is too weak to figure that out. --- src/uv-common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/uv-common.c b/src/uv-common.c index 532f53fc..ceb65811 100644 --- a/src/uv-common.c +++ b/src/uv-common.c @@ -473,4 +473,5 @@ int uv__getaddrinfo_translate_error(int sys_err) { } assert(!"unknown EAI_* error code"); abort(); + return 0; /* Pacify compiler. */ }