1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

Add -flocks only to clang

This commit is contained in:
Petr Ledvina 2017-09-27 14:24:58 +02:00
parent f564cdf952
commit acedb4676d
2 changed files with 10 additions and 10 deletions

View file

@ -61,8 +61,6 @@ TEST(AtomicUnittest, TestAtomicBlockNB)
EXPECT_EQ(atomic_BASEPRI, 0); // restore priority to unlocked
}
#if 1 // not working now ... (CLang needs -fblock + libraries / some unittests don't support gcc)
struct barrierTrace {
int enter, leave;
};
@ -112,5 +110,3 @@ TEST(AtomicUnittest, TestAtomicBarrier)
//return sIdx;
EXPECT_EQ(sIdx, sampled);
}
#endif