From 1be2cdab219bd5bdab5be313bbd10216f148a698 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Wed, 7 Dec 2011 17:52:47 +0800 Subject: [PATCH] cogl-bitmask.h: Eliminate compiler warning Both _cogl_bitmask_set_flags and _cogl_bitmask_set_flags_array have void return types, so just execute _cogl_bitmask_set_flags_array without returning that to elimate a compiler warning. https://bugzilla.gnome.org/show_bug.cgi?id=665722 Reviewed-by: Neil Roberts --- cogl/cogl-bitmask.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogl/cogl-bitmask.h b/cogl/cogl-bitmask.h index e37fc0f2a..7c15e1bc5 100644 --- a/cogl/cogl-bitmask.h +++ b/cogl/cogl-bitmask.h @@ -258,7 +258,7 @@ _cogl_bitmask_set_flags (const CoglBitmask *bitmask, unsigned long *flags) { if (_cogl_bitmask_has_array (bitmask)) - return _cogl_bitmask_set_flags_array (bitmask, flags); + _cogl_bitmask_set_flags_array (bitmask, flags); else flags[0] |= _cogl_bitmask_to_bits (bitmask); }