ngtcp2_pck: hack for avoid false positive warning with Clang Analyzer
ngtcp2_pkt.c:451:7: warning: Assigned value is garbage or undefined
ngtcp2_pkt.c:470:7: warning: Assigned value is garbage or undefined
@@ -446,6 +446,9 @@ ssize_t ngtcp2_pkt_decode_ack_frame(ngtcp2_ack *dest, const uint8_t *payload,
case 0x03:
lalen = 6;
break;
+ default: /* it is no possible but Clang analyzer don't this ... */
+ lalen = 0;
+ break;
}
len += lalen;
@@ -463,6 +466,9 @@ ssize_t ngtcp2_pkt_decode_ack_frame(ngtcp2_ack *dest, const uint8_t *payload,
case 0x03:
abllen = 6;
break;
+ default: /* it is no possible but Clang analyzer don't this ... */
+ abllen = 0;
+ break;
}
/* Length of ACK Block Section */
