From: Dana Jansens Date: Mon, 17 May 2010 22:39:55 +0000 (-0400) Subject: new enum values need to be handled in switches X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=1c637efcbb26211f0274687beb8f462d5db36cd5;p=chaz%2Fopenbox new enum values need to be handled in switches (the new enum values were added to count the number of entries in the enums) --- diff --git a/obrender/font.c b/obrender/font.c index 892b2c10..a22e23f5 100644 --- a/obrender/font.c +++ b/obrender/font.c @@ -284,6 +284,8 @@ void RrFontDraw(XftDraw *d, RrTextureText *t, RrRect *area) case RR_JUSTIFY_CENTER: x += (w - mw) / 2; break; + case RR_JUSTIFY_NUM_TYPES: + g_assert_not_reached(); } if (t->shadow_offset_x || t->shadow_offset_y) { diff --git a/obrender/render.c b/obrender/render.c index 58bf12ec..fb59e216 100644 --- a/obrender/render.c +++ b/obrender/render.c @@ -170,6 +170,8 @@ Pixmap RrPaintPixmap(RrAppearance *a, gint w, gint h) } force_transfer = 1; break; + case RR_TEXTURE_NUM_TYPES: + g_assert_not_reached(); } } @@ -377,6 +379,8 @@ void RrMargins (RrAppearance *a, gint *l, gint *t, gint *r, gint *b) case RR_BEVEL_2: *l = *t = *r = *b = 2; break; + case RR_BEVEL_NUM_TYPES: + g_assert_not_reached(); } } else if (a->surface.border) { *l = *t = *r = *b = 1; @@ -426,6 +430,8 @@ gint RrMinWidth(RrAppearance *a) w = MAX(w, MAX(a->texture[i].data.lineart.x1 - l - r, a->texture[i].data.lineart.x2 - l - r)); break; + case RR_TEXTURE_NUM_TYPES: + g_assert_not_reached(); } } @@ -481,6 +487,8 @@ gint RrMinHeight(RrAppearance *a) h = MAX(h, MAX(a->texture[i].data.lineart.y1 - t - b, a->texture[i].data.lineart.y2 - t - b)); break; + case RR_TEXTURE_NUM_TYPES: + g_assert_not_reached(); } }