dlls/gdi32/bidi.c warning fix

Gerald Pfeifer gerald at pfeifer.com
Fri Oct 19 14:55:33 CDT 2007


GCC 3.4 (and others, I assume) issue the following warning

  bidi.c: In function `BIDI_Reorder':
  bidi.c:1109: warning: suggest explicit braces to avoid ambiguous `else'

That warning does not seem very useful to me in this context, but there
is nothing we can do about except for adding those extra braces.

Gerald

ChangeLog:

ChangeLog:
Add a set of braces to silence a GCC 3.4 warning.

Index: 
dlls/gdi32/bidi.c
===================================================================
RCS file: /home/wine/wine/dlls/gdi32/bidi.c,v
retrieving revision 1.13
diff -u -3 -p -r1.13 bidi.c
--- dlls/gdi32/bidi.c	1 Oct 2007 12:55:57 -0000	1.13
+++ dlls/gdi32/bidi.c	19 Oct 2007 19:34:23 -0000
@@ -1107,6 +1107,7 @@ BOOL BIDI_Reorder(
             baselevel = 0;
 
         if (dwWineGCP_Flags & WINE_GCPW_LOOSE_MASK)
+        {
             for (j = 0; j < i; ++j)
                 if (chartype[j] == L)
                 {
@@ -1118,6 +1119,7 @@ BOOL BIDI_Reorder(
                     baselevel = 1;
                     break;
                 }
+        }  
 
         /* resolve explicit */
         resolveExplicit(baselevel, N, chartype, levels, i, 0);



More information about the wine-patches mailing list