10000 Clean up minor GCC 12.3 warnings (#2) · Networking-for-Arduino/ESPHost@286b9c2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 286b9c2

Browse files
Clean up minor GCC 12.3 warnings (#2)
1 parent 7a1b5cb commit 286b9c2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/CMsg.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,16 @@ void CMsg::reset_without_delete() {
8585

8686

8787
/* -------------------------------------------------------------------------- */
88-
CMsg::CMsg() : buf{nullptr}, dim{0}, payload_header{nullptr}, proto_dim{0}, tlv_size(esp_tlv_header_size) {
88+
CMsg::CMsg() : buf{nullptr}, dim{0}, proto_dim{0}, payload_header{nullptr}, tlv_size(esp_tlv_header_size) {
8989

9090
}
9191
/* -------------------------------------------------------------------------- */
9292

9393
/* -------------------------------------------------------------------------- */
9494
CMsg::CMsg(uint16_t proto_size, bool use_tlv /*= true*/) : buf{nullptr},
9595
dim{0},
96-
payload_header{nullptr},
97-
proto_dim{proto_size} {
96+
proto_dim{proto_size},
97+
payload_header{nullptr} {
9898
/* -------------------------------------------------------------------------- */
9999
uint16_t request_size = 0;
100100
if(use_tlv) {
@@ -443,6 +443,7 @@ void CMsg::debug_print(const char* title) {
443443
/* -------------------------------------------------------------------------- */
444444
bool CMsg::store_rx_buffer(const uint8_t *buffer, uint32_t d) {
445445
/* -------------------------------------------------------------------------- */
446+
(void) d;
446447
/* rx_payload_len is TLV + PROTO (tlv can be present or not) */
447448
uint16_t rx_payload_len = verify_payload_header(buffer);
448449

0 commit comments

Comments
 (0)
0