mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
r13477@catbus: nickm | 2007-06-17 14:22:03 -0400
Sun CC likes to give warnings for the do { } while(0) construction for making statement-like macros. Define STMT_BEGIN/STMT_END macros that do the right thing, and use them everywhere.
svn:r10645
This commit is contained in:
@@ -41,8 +41,8 @@
|
||||
|
||||
#define RESPONSE_LEN_4 8
|
||||
#define log_sock_error(act, _s) \
|
||||
do { log_fn(LOG_ERR, LD_NET, "Error while %s: %s", act, \
|
||||
tor_socket_strerror(tor_socket_errno(_s))); } while (0)
|
||||
STMT_BEGIN log_fn(LOG_ERR, LD_NET, "Error while %s: %s", act, \
|
||||
tor_socket_strerror(tor_socket_errno(_s))); STMT_END
|
||||
|
||||
static void usage(void) ATTR_NORETURN;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user