diff options
author | Bert Belder <bertbelder@gmail.com> | 2015-01-08 14:58:42 +0300 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2015-01-08 16:17:24 +0300 |
commit | 858b5583456ef74fadbd9eca691e546b1c11eb16 (patch) | |
tree | 1e6770d555b73d12147fb329b47dc19d5252a968 /src/node_win32_etw_provider.h | |
parent | 09fe6fe153db99ad78ba72cf01aab6829a39c80b (diff) |
win: fix NODE_NET_SOCKET_READ/WRITE signature
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>
Diffstat (limited to 'src/node_win32_etw_provider.h')
-rw-r--r-- | src/node_win32_etw_provider.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/node_win32_etw_provider.h b/src/node_win32_etw_provider.h index 69f20a2b18d..bc5886c9c8a 100644 --- a/src/node_win32_etw_provider.h +++ b/src/node_win32_etw_provider.h @@ -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_ |