projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5bde11f
)
volatile should not be used to describe non-hardware lvalues, and fix const cast...
author
Paul Davis
<paul@linuxaudiosystems.com>
Wed, 24 Jun 2015 17:09:29 +0000
(13:09 -0400)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Mon, 29 Jun 2015 18:18:16 +0000
(14:18 -0400)
libs/pbd/pbd/atomic_counter.h
patch
|
blob
|
history
diff --git
a/libs/pbd/pbd/atomic_counter.h
b/libs/pbd/pbd/atomic_counter.h
index 1e1998e1f121b9a95c83361f596fda54fdb7b9ab..019ff857f494e83632431a9f02bb3cdccba75cd1 100644
(file)
--- 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;
};