mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
Move variable into its own curly-brace scope
IAR generates warning Pe546 'transfer of control bypasses initialization of variable "invInvTag"'.
This commit is contained in:
parent
caff3b5c54
commit
62d90c8500
@ -470,8 +470,10 @@ bool usbtmcd_xfer_cb(uint8_t rhport, uint8_t ep_addr, xfer_result_t result, uint
|
||||
case STATE_IDLE:
|
||||
TU_VERIFY(xferred_bytes >= sizeof(usbtmc_msg_generic_t));
|
||||
msg = (usbtmc_msg_generic_t*)(usbtmc_state.ep_bulk_out_buf);
|
||||
uint8_t invInvTag = (uint8_t)~(msg->header.bTagInverse);
|
||||
TU_VERIFY(msg->header.bTag == invInvTag);
|
||||
{
|
||||
uint8_t invInvTag = (uint8_t)~(msg->header.bTagInverse);
|
||||
TU_VERIFY(msg->header.bTag == invInvTag);
|
||||
}
|
||||
TU_VERIFY(msg->header.bTag != 0x00);
|
||||
|
||||
switch(msg->header.MsgID) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user