--- ./src/uct/tcp/tcp_ep.c.orig	2021-03-29 11:54:29.505568247 +0200
+++ ./src/uct/tcp/tcp_ep.c	2021-03-29 11:55:37.083082889 +0200
@@ -1307,7 +1307,7 @@
     uct_tcp_ep_t *ep       = ucs_derived_of(uct_ep, uct_tcp_ep_t);
     uct_tcp_iface_t *iface = ucs_derived_of(uct_ep->iface, uct_tcp_iface_t);
     uct_tcp_am_hdr_t *hdr  = NULL;
-    uint32_t payload_length;
+    uint32_t UCS_V_UNUSED payload_length;
     ucs_status_t status;
 
     UCT_CHECK_AM_ID(am_id);
