Re: [AD] BCC32 broken under Beta 4

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


On 2005-08-10, Matthew Leverton <meffer@xxxxxxxxxx> wrote:
> 2. It doesn't like a line in grabber.c, namely the list_getter function.
> 
> @@ -3625,7 +3526,7 @@ int datedit_select(AL_CONST char *(*list
> -      { d_list_proc,       28,   24,   161,  50,   0,    0,    0,    
>   0,          0,             0,      
> (int(*)(int,DIALOG*,int))list_getter,         NULL, NULL  },
> +      { d_list_proc,       28,   24,   161,  50,   0,    0,    0,    
>   0,          0,             0,       NULL,         NULL, NULL  },
> 
> When I change it to NULL, it compiles. I'm not familiar with BCC32, so
> I don't know how to fix it.

The cast was to fix a const-correctness warning, but I don't see why.
Michal Molhanec (who sent in the diff): which compiler did you use?

Peter





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