diff options
| author | KunYi Chen <[email protected]> | 2024-10-25 12:14:39 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2024-10-25 22:22:09 -0400 |
| commit | 6b7f1177deeae01a7092c22a89cd41e7b318f01c (patch) | |
| tree | 756bf0ce0bbfb8d41a5f9e03ee38742a59835518 /libcpu/sim/SConscript | |
| parent | ee1490736c7d0f110c3a6fcde428c65dda1b29ac (diff) | |
fix: suppress unused warnings when DEBUG disabled
When RT_USING_DEBUG is disabled, variables used only in RT_ASSERT
statements become unused, triggering -Wunused-but-set-variable compiler
warnings. These variables are essential for runtime assertions in debug
builds but appear unused in release builds.
Example:
- Variables used in RT_ASSERT(var != RT_NULL) checks
- Affects multiple drivers and components using RT_ASSERT
This is a general cleanup to improve code compilation without affecting
functionality.
Diffstat (limited to 'libcpu/sim/SConscript')
0 files changed, 0 insertions, 0 deletions
