Clang: tautological-undefined-compare

This commit is contained in:
Ehmry - 2019-09-18 02:04:30 +02:00
parent 2fe9187a77
commit 057b6427c7
1 changed files with 2 additions and 0 deletions

View File

@ -113,6 +113,8 @@ void prepare_reinit_main_thread()
** Thread **
************/
#pragma clang diagnostic ignored "-Wtautological-undefined-compare"
/* prevent the compiler from optimizing out the 'this' pointer check */
__attribute__((optimize("-fno-delete-null-pointer-checks")))
Native_utcb *Thread::utcb()