Repository navigation
Fixes UART/DMA 与性能测试编译告警 - #163
Merged
Merged
Conversation
为 STM32H7 BSP 中的 UART 中断和 DMA 禁用宏调用添加 (void) 转换,明确无需使用表达式结果,避免编译器告警,不改变原有运行行为。
在 DJI_Board_TypeC_general 的 performance_test 示例中,t0、t1 与 cycle_sum 仅用于整段计时但从未被读取,实际统计均基于各分段 cycle 数组完成。将其注释掉以避免编译器未使用变量告警,不改变原有性能测量逻辑;同时补全文件末尾换行。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
这些调整不改变运行时行为,仅减少构建噪声,避免无关告警干扰后续问题排查。