summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Bogorodskiy <bogorodskiy@gmail.com>2014-08-18 23:22:19 +0400
committerStef Walter <stef@thewalter.net>2014-09-09 12:35:11 +0200
commitaff7ac7ef469f96a55063ba423af66fca17c29c7 (patch)
tree5525c3c20d6fa59c8942de2580579d0afbdbfc3e
parentc3fc7b49890bef7c28c1315476c6270d8ed1a492 (diff)
downloadp11-kit-aff7ac7ef469f96a55063ba423af66fca17c29c7.tar.gz
Fix build without debug
When building without debug build fails with: CCLD p11-kit/p11-kit ./.libs/libp11-kit.so: undefined reference to `P11_RPC_CHECK_CALLS' cc: error: linker command failed with exit code 1 (use -v to see invocation) gmake[2]: *** [p11-kit/p11-kit] Error 1 This happens because P11_RPC_CHECK_CALLS is not defined when debugging is enabled, so provide a noop macro for that case.
-rw-r--r--p11-kit/rpc-message.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/p11-kit/rpc-message.h b/p11-kit/rpc-message.h
index f85265b..fc4d06e 100644
--- a/p11-kit/rpc-message.h
+++ b/p11-kit/rpc-message.h
@@ -207,6 +207,8 @@ static const p11_rpc_call p11_rpc_calls[] = {
#ifdef _DEBUG
#define P11_RPC_CHECK_CALLS() \
{ int i; for (i = 0; i < P11_RPC_CALL_MAX; ++i) assert (p11_rpc_calls[i].call_id == i); }
+#else
+#define P11_RPC_CHECK_CALLS()
#endif
#define P11_RPC_HANDSHAKE \