From 4d9690930a29b63a5a9b392847b280d6c770aa12 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 16 Apr 2017 00:15:53 +0200 Subject: [PATCH] Silence -Wunused-value --- libs/pbd/pbd/event_loop.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/pbd/pbd/event_loop.h b/libs/pbd/pbd/event_loop.h index 5f1f1344dd..716efd6671 100644 --- a/libs/pbd/pbd/event_loop.h +++ b/libs/pbd/pbd/event_loop.h @@ -68,7 +68,7 @@ public: bool valid () { return g_atomic_int_get (&_valid) == 1; } void ref () { g_atomic_int_inc (&_ref); } - void unref () { g_atomic_int_dec_and_test (&_ref); } + void unref () { (void) g_atomic_int_dec_and_test (&_ref); } bool in_use () { return g_atomic_int_get (&_ref) > 0; } int use_count () { return g_atomic_int_get (&_ref); } };