guitarix2/guitarix2-0.42.1-gcc-11.0.patch

14 lines
535 B
Diff
Raw Permalink Normal View History

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);
}