win: fix NODE_NET_SOCKET_READ/WRITE signature
authorBert Belder <bertbelder@gmail.com>
Thu, 8 Jan 2015 11:58:42 +0000 (12:58 +0100)
committerBert Belder <bertbelder@gmail.com>
Thu, 8 Jan 2015 13:17:24 +0000 (14:17 +0100)
The NODE_NET_SOCKET_READ and NODE_NET_SOCKET_WRITE macros are just
no-ops on Windows, but they used to be defined as taking four parameters
while being called with five arguments. Turn them into variadic macros
to squelch a compiler warning.

PR-URL: https://github.com/iojs/io.js/pull/261
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
src/node_win32_etw_provider.h

index 69f20a2..bc5886c 100644 (file)
@@ -92,8 +92,9 @@ INLINE bool NODE_NET_SOCKET_READ_ENABLED();
 INLINE bool NODE_NET_SOCKET_WRITE_ENABLED();
 INLINE bool NODE_V8SYMBOL_ENABLED();
 
-#define NODE_NET_SOCKET_READ(arg0, arg1, arg2, arg3)
-#define NODE_NET_SOCKET_WRITE(arg0, arg1, arg2, arg3)
+#define NODE_NET_SOCKET_READ(...)  /* no-op */
+#define NODE_NET_SOCKET_WRITE(...) /* no-op */
+
 }  // namespace node
 
 #endif  // SRC_NODE_WIN32_ETW_PROVIDER_H_