summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-06-19 08:10:35 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2015-06-19 08:10:35 -0400
commit2ec91511703ebd05a403047f5a411fcbc197c9fa (patch)
treecbbf8bf844a6bda80ddfcbf1c0443fbe680e3ab6
parenta1932c7feba446dc0168d200d7f6808c39046962 (diff)
fix compiler const-cast warning
-rw-r--r--libs/canvas/canvas/wave_view.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/canvas/canvas/wave_view.h b/libs/canvas/canvas/wave_view.h
index 55d82022af..6b18f399d4 100644
--- a/libs/canvas/canvas/wave_view.h
+++ b/libs/canvas/canvas/wave_view.h
@@ -56,7 +56,7 @@ struct LIBCANVAS_API WaveViewThreadRequest
WaveViewThreadRequest () : stop (0) {}
- bool should_stop () const { return (bool) g_atomic_int_get (&stop); }
+ bool should_stop () const { return (bool) g_atomic_int_get (const_cast<gint*>(&stop)); }
void cancel() { g_atomic_int_set (&stop, 1); }
RequestType type;