From 0f2c90c789c1b83cb19c5e75e1d58d57d03ee902 Mon Sep 17 00:00:00 2001 From: Jonathan Hudson Date: Sat, 2 Jan 2016 18:04:52 +0000 Subject: [PATCH] updated atomic.h for gcc 5 --- src/main/common/atomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/common/atomic.h b/src/main/common/atomic.h index 556f2ee966..652134b5ab 100644 --- a/src/main/common/atomic.h +++ b/src/main/common/atomic.h @@ -83,7 +83,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__ > 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