Skip to content

Commit c0f75b1

Browse files
committed
dshot: add missing '#pragma GCC diagnostic push'
1 parent 757424c commit c0f75b1

File tree

1 file changed

+1
-0
lines changed
  • platforms/nuttx/src/px4/stm/stm32_common/dshot

1 file changed

+1
-0
lines changed

platforms/nuttx/src/px4/stm/stm32_common/dshot/dshot.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ int up_dshot_init(uint32_t channel_mask, unsigned dshot_pwm_freq)
100100
}
101101

102102
// we know the uint8_t* cast to uint32_t* is fine, since we're aligned to cache line size
103+
#pragma GCC diagnostic push
103104
#pragma GCC diagnostic ignored "-Wcast-align"
104105
dshot_burst_buffer[timer] = (uint32_t *)&dshot_burst_buffer_array[buffer_offset];
105106
#pragma GCC diagnostic pop

0 commit comments

Comments
 (0)