From aa798ebf8fcc0a72c837c7daea63e6d9ef51ff30 Mon Sep 17 00:00:00 2001 From: "L. Krause" Date: Sat, 22 Jul 2017 22:01:57 +0200 Subject: [PATCH] Fix atomic operations in NO_THREADS builds --- core/safe_refcount.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/safe_refcount.cpp b/core/safe_refcount.cpp index 1bd16f9e4f2..d18c90adfa1 100644 --- a/core/safe_refcount.cpp +++ b/core/safe_refcount.cpp @@ -55,7 +55,7 @@ static _ALWAYS_INLINE_ T _atomic_decrement_impl(register T *pw) { } template -static _ALWAYS_INLINE_T _atomic_increment_impl(register T *pw) { +static _ALWAYS_INLINE_ T _atomic_increment_impl(register T *pw) { (*pw)++; @@ -71,7 +71,7 @@ static _ALWAYS_INLINE_ T _atomic_sub_impl(register T *pw, register T val) { } template -static _ALWAYS_INLINE_T _atomic_add_impl(register T *pw, register T val) { +static _ALWAYS_INLINE_ T _atomic_add_impl(register T *pw, register T val) { (*pw) += val;