Don't return in void function

Would have been nice if gcc had warned...
This commit is contained in:
Behdad Esfahbod 2011-04-27 01:41:24 -04:00
parent ec6f9c2fd0
commit ebdc83467c
1 changed files with 1 additions and 1 deletions

View File

@ -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; }