From 52f942cafd2d0efae06c2eb67bd4321f9cd8d68c Mon Sep 17 00:00:00 2001 From: Jonathan Hudson Date: Sat, 4 May 2019 16:58:38 +0100 Subject: [PATCH] update atomic.h gcc version for gcc 9 --- src/main/build/atomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/build/atomic.h b/src/main/build/atomic.h index e62166f7d5..e0cfb5cdc3 100644 --- a/src/main/build/atomic.h +++ b/src/main/build/atomic.h @@ -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