summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_tracer.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-08-14 12:40:49 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-08-14 12:40:49 -0400
commit2de09888b6be3c0d81a1a8089b9a8e87ececa0ee (patch)
tree8fdc349275df353713eecdd28125db145d8d7617 /gtk2_ardour/midi_tracer.cc
parent8d8770f4ccd4d4d5a7731b6cd0ac28ce40ba00d0 (diff)
some const_cast<> additions for OS X where gcc believes that volatile int* means const int*
Diffstat (limited to 'gtk2_ardour/midi_tracer.cc')
-rw-r--r--gtk2_ardour/midi_tracer.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/midi_tracer.cc b/gtk2_ardour/midi_tracer.cc
index ba116d39aa..ea4b0c2d54 100644
--- a/gtk2_ardour/midi_tracer.cc
+++ b/gtk2_ardour/midi_tracer.cc
@@ -404,9 +404,9 @@ MidiTracer::tracer (Parser&, byte* msg, size_t len)
fifo.write (&buf, 1);
- if (g_atomic_int_get (&_update_queued) == 0) {
+ if (g_atomic_int_get (const_cast<gint*> (&_update_queued)) == 0) {
gui_context()->call_slot (invalidator (*this), boost::bind (&MidiTracer::update, this));
- g_atomic_int_inc (&_update_queued);
+ g_atomic_int_inc (const_cast<gint*> (&_update_queued));
}
}
@@ -414,7 +414,7 @@ void
MidiTracer::update ()
{
bool updated = false;
- g_atomic_int_dec_and_test (&_update_queued);
+ g_atomic_int_dec_and_test (const_cast<gint*> (&_update_queued));
RefPtr<TextBuffer> buf (text.get_buffer());