Don't return in void function
Would have been nice if gcc had warned...
This commit is contained in:
parent
ec6f9c2fd0
commit
ebdc83467c
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue