DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR Active]

Link: http://www.fltk.org/str.php?L2432
Version: 1.3-current
Fix Version: 1.3.0 (r7873)


Sorry for reopening this STR, but the change in svn r7873 produces lots of
warnings on normal linux builds :-(

Compiling xutf8/utf8Wrap.c...
xutf8/utf8Wrap.c: In function ‘XUtf8DrawRtlString’:
xutf8/utf8Wrap.c:387: warning: passing argument 2 of ‘XTextWidth16’
from incompatible pointer type
xutf8/utf8Wrap.c:388: warning: passing argument 6 of ‘XDrawString16’
from incompatible pointer type
xutf8/utf8Wrap.c:424: warning: passing argument 2 of ‘XTextWidth16’
from incompatible pointer type
xutf8/utf8Wrap.c:425: warning: passing argument 6 of ‘XDrawString16’
from incompatible pointer type
xutf8/utf8Wrap.c:431: warning: passing argument 2 of ‘XTextWidth16’
from incompatible pointer type
xutf8/utf8Wrap.c:447: warning: passing argument 2 of ‘XTextWidth16’
from incompatible pointer type
xutf8/utf8Wrap.c:448: warning: passing argument 6 of ‘XDrawString16’
from incompatible pointer type
xutf8/utf8Wrap.c: In function ‘XUtf8DrawString’:
xutf8/utf8Wrap.c:505: warning: passing argument 6 of ‘XDrawString16’
from incompatible pointer type
xutf8/utf8Wrap.c:506: warning: passing argument 2 of ‘XTextWidth16’
from incompatible pointer type
xutf8/utf8Wrap.c:542: warning: passing argument 6 of ‘XDrawString16’
from incompatible pointer type
xutf8/utf8Wrap.c:543: warning: passing argument 2 of ‘XTextWidth16’
from incompatible pointer type
xutf8/utf8Wrap.c:548: warning: passing argument 2 of ‘XTextWidth16’
from incompatible pointer type
xutf8/utf8Wrap.c:561: warning: passing argument 6 of ‘XDrawString16’
from incompatible pointer type
xutf8/utf8Wrap.c: In function ‘XUtf8TextWidth’:
xutf8/utf8Wrap.c:616: warning: passing argument 2 of ‘XTextWidth16’
from incompatible pointer type
xutf8/utf8Wrap.c:653: warning: passing argument 2 of ‘XTextWidth16’
from incompatible pointer type
xutf8/utf8Wrap.c:659: warning: passing argument 2 of ‘XTextWidth16’
from incompatible pointer type
xutf8/utf8Wrap.c:671: warning: passing argument 2 of ‘XTextWidth16’
from incompatible pointer type
xutf8/utf8Wrap.c: In function ‘XUtf8UcsWidth’:
xutf8/utf8Wrap.c:817: warning: passing argument 2 of ‘XTextWidth16’
from incompatible pointer type

---

I suggest the attached patch str_2432_utf8Wrap.diff to fix this.

Matt ?


Link: http://www.fltk.org/str.php?L2432
Version: 1.3-current
Fix Version: 1.3.0 (r7873)
Index: src/xutf8/utf8Wrap.c
===================================================================
--- src/xutf8/utf8Wrap.c        (revision 7891)
+++ src/xutf8/utf8Wrap.c        (working copy)
@@ -48,14 +48,16 @@
  * XChar2b which does not have this problem
  */
 
+#if defined(__GNUC__) && defined(__arm__) && !defined(__ARM_EABI__)
 typedef struct {
   unsigned char byte1;
   unsigned char byte2;
 }
-#if defined(__GNUC__) && defined(__arm__) && !defined(__ARM_EABI__)
 __attribute__ ((packed))
+Fl_XChar2b;
+#else
+#define Fl_XChar2b XChar2b
 #endif
-Fl_XChar2b;
 
 
 /*********************************************************************/
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to