Re: [AD] GCC 4 warnings for MacOS X

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Wednesday 11 May 2005 09:40, Evert Glebbeek wrote:
> Seems there are still some more GCC 4-related warnings in the MacOS X
> specific portion of the code, as reported here:
> http://www.allegro.cc/forums/view_thread.php?_id=488821#target
> Perhaps someone with a Mac can have a look at these?

I don't have a Mac, but I gave it my best shot. This should fix at least 
some of them.

Evert
Index: src/macosx/quartz.m
===================================================================
RCS file: /cvsroot/alleg/allegro/src/macosx/quartz.m,v
retrieving revision 1.7
diff -u -r1.7 quartz.m
--- src/macosx/quartz.m	14 Jan 2004 18:10:26 -0000	1.7
+++ src/macosx/quartz.m	14 May 2005 12:11:12 -0000
@@ -129,7 +129,7 @@
    BITMAP *bmp;
    GWorldPtr gworld;
    Rect rect;
-   char *addr;
+   unsigned char *addr;
    int pitch;
    int i, size;
    
Index: src/macosx/qzfull.m
===================================================================
RCS file: /cvsroot/alleg/allegro/src/macosx/qzfull.m,v
retrieving revision 1.20
diff -u -r1.20 qzfull.m
--- src/macosx/qzfull.m	14 May 2005 11:41:53 -0000	1.20
+++ src/macosx/qzfull.m	14 May 2005 12:11:13 -0000
@@ -343,7 +343,7 @@
 static int osx_qz_show_video_bitmap(BITMAP *bmp)
 {
    Rect rect;
-   char *addr;
+   unsigned char *addr;
    int i;
    
    if ((bmp->w != gfx_quartz_full.w) || (bmp->h != gfx_quartz_full.h))


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/