[cogl] cogl-bitmask.h: Eliminate compiler warning



commit 1be2cdab219bd5bdab5be313bbd10216f148a698
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Dec 7 17:52:47 2011 +0800

    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 <neil linux intel com>

 cogl/cogl-bitmask.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/cogl/cogl-bitmask.h b/cogl/cogl-bitmask.h
index e37fc0f..7c15e1b 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);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]