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

update atomic.h gcc version for gcc 9

This commit is contained in:
Jonathan Hudson 2019-05-04 16:58:38 +01:00
parent 3cdeacbd54
commit 52f942cafd

View file

@ -91,7 +91,7 @@ static inline uint8_t __basepriSetRetVal(uint8_t prio)
// ideally this would only protect memory passed as parameter (any type should work), but gcc is currently creating almost full barrier
// this macro can be used only ONCE PER LINE, but multiple uses per block are fine
#if (__GNUC__ > 8)
#if (__GNUC__ > 9)
#warning "Please verify that ATOMIC_BARRIER works as intended"
// increment version number is BARRIER works
// TODO - use flag to disable ATOMIC_BARRIER and use full barrier instead