From 272fe1ac5a48f2093f87c7429bf444a15b0de097 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Tue, 10 Oct 2023 15:57:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E9=83=A8=E5=88=86=E8=AD=A6?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zcancmder_protocol_basic.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zcancmder_protocol_basic.hpp b/zcancmder_protocol_basic.hpp index be897fe..1752634 100644 --- a/zcancmder_protocol_basic.hpp +++ b/zcancmder_protocol_basic.hpp @@ -30,7 +30,7 @@ auto* cmd = rxcmd->get_data_as(); \ auto* ack = (ordername##_##ack##_t*)m_txbuf; \ static_assert(sizeof(*ack) < sizeof(m_txbuf), "ack size too large"); \ - auto cmdheader = rxcmd->get_cmdheader(); \ + auto __attribute__((unused)) cmdheader = rxcmd->get_cmdheader(); \ uint32_t errorcode = 0; \ if (cmd->id == varid) { \ ack->id = cmd->id;