[pango/compiler-warnings: 3/4] Avoid another compiler warning



commit ed34d7eaff5ffbfe0f7a19d2b024e33e32e2ced3
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Aug 1 22:38:43 2019 -0400

    Avoid another compiler warning
    
    Unused-but-set-variable.

 pango/emoji_presentation_scanner.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/pango/emoji_presentation_scanner.c b/pango/emoji_presentation_scanner.c
index 97a52927..87e55aa7 100644
--- a/pango/emoji_presentation_scanner.c
+++ b/pango/emoji_presentation_scanner.c
@@ -96,7 +96,7 @@ scan_emoji_presentation (emoji_text_iter_t p,
     const emoji_text_iter_t pe,
     bool* is_emoji)
 {
-  emoji_text_iter_t ts, te;
+  emoji_text_iter_t te;
   const emoji_text_iter_t eof = pe;
 
   unsigned act;
@@ -106,7 +106,6 @@ scan_emoji_presentation (emoji_text_iter_t p,
 #line 107 "emoji_presentation_scanner.c"
        {
        cs = emoji_presentation_start;
-       ts = 0;
        te = 0;
        act = 0;
        }
@@ -128,7 +127,6 @@ _resume:
                switch ( *_acts++ ) {
        case 1:
 #line 1 "NONE"
-       {ts = p;}
        break;
 #line 134 "emoji_presentation_scanner.c"
                }
@@ -255,7 +253,6 @@ _again:
                switch ( *_acts++ ) {
        case 0:
 #line 1 "NONE"
-       {ts = 0;}
        break;
 #line 261 "emoji_presentation_scanner.c"
                }


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