diff options
| author | Frank Buss <[email protected]> | 2022-09-25 01:49:26 +0200 |
|---|---|---|
| committer | Man, Jianting (Meco) <[email protected]> | 2022-10-08 22:37:41 -0400 |
| commit | e80facfd06ec70340a779b9edfb367f79a0ecbc4 (patch) | |
| tree | 33b7166df7489bf757117e915d6ade8185ec7b74 /src/SConscript | |
| parent | 6b60aab136c19e4febfd8ebc9ecbff25c4672bb4 (diff) | |
remove unused code to improve speed
The RT_ASSERT(obj != object) line is only compiled for debug mode.
But the rt_enter/exit_critical causes the compiler not to optimize
at least these 2 calls, even if it could optimize out the whole loop,
because the rt_list_entry function has no side effect, and RT_ASSET
is a no-operation in release mode. So this patch fixes this:
- no warnings anymore
- better speed in release mode
Diffstat (limited to 'src/SConscript')
0 files changed, 0 insertions, 0 deletions
