Skip to content

Commit

Permalink
per request, throw_error removed from header file.
Browse files Browse the repository at this point in the history
  • Loading branch information
M committed Oct 2, 2017
1 parent bb15348 commit 24eeb36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/io/syncsocket.c
Expand Up @@ -23,7 +23,7 @@
/* Error handling varies between POSIX and WinSock. */
#ifdef _WIN32
#define MVM_IS_SOCKET_ERROR(x) ((x) == SOCKET_ERROR)
static void throw_error(MVMThreadContext *tc, int r, char *operation) {
MVM_NO_RETURN static void throw_error(MVMThreadContext *tc, int r, char *operation) MVM_NO_RETURN_GCC {
int error = WSAGetLastError();
LPTSTR error_string = NULL;
if (FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
Expand All @@ -35,7 +35,7 @@
}
#else
#define MVM_IS_SOCKET_ERROR(x) ((x) < 0)
static void throw_error(MVMThreadContext *tc, int r, char *operation) {
MVM_NO_RETURN static void throw_error(MVMThreadContext *tc, int r, char *operation) MVM_NO_RETURN_GCC {
MVM_exception_throw_adhoc(tc, "Could not %s: %s", operation, strerror(errno));
}
#endif
Expand Down
1 change: 0 additions & 1 deletion src/io/syncsocket.h
@@ -1,4 +1,3 @@
MVM_NO_RETURN static void throw_error(MVMThreadContext *tc, int r, char *operation) MVM_NO_RETURN_GCC;
MVMObject * MVM_io_socket_create(MVMThreadContext *tc, MVMint64 listen);
struct sockaddr * MVM_io_resolve_host_name(MVMThreadContext *tc, MVMString *host, MVMint64 port);
MVMString * MVM_io_get_hostname(MVMThreadContext *tc);

0 comments on commit 24eeb36

Please sign in to comment.