[pango/compiler-warnings: 5/6] renderer: Silence compiler warnings




commit 5832166d697ae9ed264350672f3e8f0cb82a7fc0
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Aug 22 02:12:43 2021 -0400

    renderer: Silence compiler warnings

 pango/pango-renderer.c | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/pango/pango-renderer.c b/pango/pango-renderer.c
index 21d09573..c91cb6ee 100644
--- a/pango/pango-renderer.c
+++ b/pango/pango-renderer.c
@@ -250,6 +250,8 @@ draw_underline (PangoRenderer *renderer,
                                            rect->width,
                                            3 * rect->height);
       break;
+    default:
+      break;
     }
 }
 
@@ -274,6 +276,8 @@ draw_overline (PangoRenderer *renderer,
                                      rect->width,
                                      rect->height);
       break;
+    default:
+      break;
     }
 }
 
@@ -388,6 +392,8 @@ add_underline (PangoRenderer    *renderer,
           current_rect->height = new_rect.height;
         }
       break;
+    default:
+      break;
     }
 
   if (renderer->underline == state->underline &&
@@ -439,6 +445,8 @@ add_overline (PangoRenderer    *renderer,
           current_rect->height = new_rect.height;
         }
       break;
+    default:
+      break;
     }
 
   if (renderer->priv->overline == state->overline &&


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