From ebdc83467c31574daa118fc18cd2ef2dc819b503 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 27 Apr 2011 01:41:24 -0400 Subject: [PATCH] Don't return in void function Would have been nice if gcc had warned... --- src/hb-private.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-private.hh b/src/hb-private.hh index 1022213..d299029 100644 --- a/src/hb-private.hh +++ b/src/hb-private.hh @@ -265,7 +265,7 @@ typedef struct { inline void init (int v) { ref_count = v; /* non-atomic is fine */ } inline int inc (void) { return hb_atomic_int_fetch_and_add (ref_count, 1); } inline int dec (void) { return hb_atomic_int_fetch_and_add (ref_count, -1); } - inline void set (int v) { return hb_atomic_int_set (ref_count, v); } + inline void set (int v) { hb_atomic_int_set (ref_count, v); } inline int get (void) const { return hb_atomic_int_get (ref_count); } inline bool is_invalid (void) const { return get () == HB_REFERENCE_COUNT_INVALID_VALUE; } -- 2.7.4