aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-10-30 18:02:55 +0100
committerlonkaars <loek@pipeframe.xyz>2022-10-30 18:02:55 +0100
commitb0aa9784978a5f63a8d7be614ab77684de4315f3 (patch)
tree00b8697d616d91713f9dfdca41efdaeba6626669
parentfc95a016d13c1510a024888c1b87bbfe1a7f7601 (diff)
ignore unused static variable
-rw-r--r--shared/protocol.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared/protocol.h b/shared/protocol.h
index e5ddf05..310940d 100644
--- a/shared/protocol.h
+++ b/shared/protocol.h
@@ -143,10 +143,13 @@ ws_protocol_res_handler_t ws_protocol_res_last_records;
*/
void ws_protocol_send_data(const char* data, unsigned int length);
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-variable"
/** @brief response handlers, called when a command is parsed */
static ws_protocol_res_handler_t* g_ws_protocol_res_handlers[WS_PROTOCOL_CMD_AMOUNT] = {
[WS_PROTOCOL_CMD_LAST_RECORDS] = &ws_protocol_res_last_records,
};
+#pragma GCC diagnostic pop
/** @brief return length of custom protocol header */
unsigned short ws_protocol_get_header_size(ws_s_protocol_res* response);