Skip to content

Commit

Permalink
Generator C: remove set but not used variable. Detected by clang
Browse files Browse the repository at this point in the history
  • Loading branch information
khancyr authored and peterbarker committed Feb 7, 2023
1 parent 3419991 commit 2ca2c13
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions generator/C/include_v1.0/mavlink_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,6 @@ MAVLINK_HELPER uint8_t mavlink_frame_char_buffer(mavlink_message_t* rxmsg,
#endif
#endif

int bufferIndex = 0;

status->msg_received = MAVLINK_FRAMING_INCOMPLETE;

switch (status->parse_state)
Expand Down Expand Up @@ -364,7 +362,6 @@ MAVLINK_HELPER uint8_t mavlink_frame_char_buffer(mavlink_message_t* rxmsg,
break;
}

bufferIndex++;
// If a message has been successfully decoded, check index
if (status->msg_received == MAVLINK_FRAMING_OK)
{
Expand Down
2 changes: 0 additions & 2 deletions generator/C/include_v2.0/mavlink_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,6 @@ MAVLINK_HELPER uint8_t mavlink_frame_char_buffer(mavlink_message_t* rxmsg,
mavlink_message_t* r_message,
mavlink_status_t* r_mavlink_status)
{
int bufferIndex = 0;

status->msg_received = MAVLINK_FRAMING_INCOMPLETE;

Expand Down Expand Up @@ -822,7 +821,6 @@ MAVLINK_HELPER uint8_t mavlink_frame_char_buffer(mavlink_message_t* rxmsg,
break;
}

bufferIndex++;
// If a message has been successfully decoded, check index
if (status->msg_received == MAVLINK_FRAMING_OK)
{
Expand Down

0 comments on commit 2ca2c13

Please # to comment.