dlls/riched20/caret.c tweak

Gerald Pfeifer gerald at pfeifer.com
Sun Mar 13 01:22:14 CST 2005


I noticed the following warning in my nightly builds

  caret.c:407: warning: control reaches end of non-void function

which comes from the addition of dlls/riched20 (Thanks, by the way).

The patch below is one attempt to address this, though I'm not sure
whether returning TRUE or FALSE would be more appropriate here.

Gerald

ChangeLog:
Make ME_ArrowLeft() return a value in every case.

Index: caret.c
===================================================================
RCS file: /home/wine/wine/dlls/riched20/caret.c,v
retrieving revision 1.4
diff -u -3 -p -r1.4 caret.c
--- caret.c	9 Mar 2005 18:43:18 -0000	1.4
+++ caret.c	13 Mar 2005 07:15:53 -0000
@@ -404,6 +404,7 @@ BOOL ME_ArrowLeft(ME_TextEditor *editor,
     }
     assert(0);
   }
+  return FALSE;
 }
 
 BOOL ME_ArrowRight(ME_TextEditor *editor, ME_Cursor *p)



More information about the wine-patches mailing list