summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd/atomic_counter.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-06-24 13:09:29 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2015-06-29 14:18:16 -0400
commit3392c05779e107dfed4d433d35f8c9464a082f0a (patch)
tree06de92febfbe8b5f400a23bb70d39bbf27728960 /libs/pbd/pbd/atomic_counter.h
parent5bde11fa98a8c3e98eba1e67d28dd822fbd105b6 (diff)
volatile should not be used to describe non-hardware lvalues, and fix const cast warning (which removes need for mutable)
Diffstat (limited to 'libs/pbd/pbd/atomic_counter.h')
-rw-r--r--libs/pbd/pbd/atomic_counter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/pbd/pbd/atomic_counter.h b/libs/pbd/pbd/atomic_counter.h
index 1e1998e1f1..019ff857f4 100644
--- a/libs/pbd/pbd/atomic_counter.h
+++ b/libs/pbd/pbd/atomic_counter.h
@@ -41,7 +41,7 @@ public:
gint get() const
{
- return g_atomic_int_get (&m_value);
+ return g_atomic_int_get (const_cast<gint*>(&m_value));
}
void set (gint new_value)
@@ -90,7 +90,7 @@ public:
private:
// Has to be mutable when using the apple version of gcc.
- mutable volatile gint m_value;
+ gint m_value;
};