GNOME Bugzilla – Bug 666240
Fix gcc warnings in gvc-level-bar.c
Last modified: 2012-01-09 10:58:19 UTC
I'm trying to use gvc-level-bar.c in Empathy (cf bug #656580) but hit those warnings when building it: gvc-level-bar.c: In function 'gvc_level_bar_set_scale': gvc-level-bar.c:365:19: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] gvc-level-bar.c: In function 'curved_rectangle': gvc-level-bar.c:523:26: error: declaration of 'y0' shadows a global declaration [-Werror=shadow] gvc-level-bar.c:529:16: error: declaration of 'y1' shadows a global declaration [-Werror=shadow] As we always build master with fatal warnings I fixed them.
Created attachment 203558 [details] [review] gvc-level-bar: define priv->scale as a GvcLevelScale That's cleaner and fix a sign-compare warning in gcc.
Created attachment 203559 [details] [review] gvc-level-bar: fix shadow global declaration warnings Those variables are already defined in some headers (like bits/math-finite.h) making gcc unhappy.
Attachment 203558 [details] pushed as 5568917 - gvc-level-bar: define priv->scale as a GvcLevelScale Attachment 203559 [details] pushed as d0db3c9 - gvc-level-bar: fix shadow global declaration warnings