behdad / box2d

Automatically exported from code.google.com/p/box2d
2 stars 12 forks source link

Patch to avoid build problems in v2.2.1 (and onward) for glui_edittext.cpp #276

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I work for a company that's extremely anal about warnings; any warning is an 
error and warnings are turned up to "11" on the dial. 

This is what I had to do to make this compile (diff between new<my code> and 
existing 2.2.1 code:

--- old/glui_edittext.cpp   2012-04-19 19:27:09.726417183 -0700
+++ new/glui_edittext.cpp   2012-04-19 19:26:05.018474142 -0700
@@ -931,7 +931,7 @@
 int    GLUI_EditText::find_word_break( int start, int direction )
 {
   int    i, j;
-  char   *breaks = " :-.,";
+  char   *breaks = (char *)" :-.,";
   int     num_break_chars = (int)strlen(breaks), text_len = (int)text.length();
   int     new_pt;

Original issue reported on code.google.com by garybrad...@gmail.com on 20 Apr 2012 at 2:42

GoogleCodeExporter commented 9 years ago
The testbed is now using a new GUI system.

Original comment by erinca...@gmail.com on 4 Apr 2014 at 4:19