guitarix/guitarix-gcc-11-compat-volatile-atomic-variables.patch

14 lines
535 B
Diff
Raw Normal View History

2021-05-04 10:39:34 +00:00
diff --git a/src/headers/gx_system.h b/src/headers/gx_system.h
index d334ecfc..88d97567 100644
--- a/src/headers/gx_system.h
+++ b/src/headers/gx_system.h
@@ -132,7 +132,7 @@ inline T *atomic_get(T*& p) {
template <class T>
inline bool atomic_compare_and_exchange(T **p, T *oldv, T *newv) {
- return g_atomic_pointer_compare_and_exchange(reinterpret_cast<void* volatile*>(p), static_cast<void*>(oldv), newv);
+ return g_atomic_pointer_compare_and_exchange(reinterpret_cast<void**>(p), static_cast<void*>(oldv), newv);
}