Silence -Wunused-value
This commit is contained in:
parent
8a3d9317bd
commit
4d9690930a
@ -68,7 +68,7 @@ public:
|
|||||||
bool valid () { return g_atomic_int_get (&_valid) == 1; }
|
bool valid () { return g_atomic_int_get (&_valid) == 1; }
|
||||||
|
|
||||||
void ref () { g_atomic_int_inc (&_ref); }
|
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; }
|
bool in_use () { return g_atomic_int_get (&_ref) > 0; }
|
||||||
int use_count () { return g_atomic_int_get (&_ref); }
|
int use_count () { return g_atomic_int_get (&_ref); }
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user