Update atomic.h

Bump version check number - Version for warning is increased to gcc > 5.x
This commit is contained in:
TheAngularity 2016-07-09 16:26:46 +02:00 committed by GitHub
parent e3767e1b09
commit 2b7b70c520
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,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 curently creating almost full barrier
// this macro can be used only ONCE PER LINE, but multiple uses per block are fine
#if (__GNUC__ > 4)
#if (__GNUC__ > 5)
#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