Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src: fix -Wempty-body compiler warnings
Turn counter macros into no-op instructions when counters are disabled. Evaluating to nothing makes gcc complain when the macro is used in a conditional. Fixes the following warning: ../src/tls_wrap.cc:320:5: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] NODE_COUNT_NET_BYTES_SENT(write_size_); ^ PR-URL: #974 Reviewed-By: Chris Dickinson <[email protected]>
- Loading branch information