Re: [AD] Allegro 4.1.0 WIP

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


> I don't remember, but it should just be a matter of adding casts to
> (void*) in the DJGPP LOCK_* macros.

I can't reproduce on my system (DJGPP 2.03, gcc 2.95.3):

#include <allegro.h>
#include <iostream>
using namespace std;

int tick;
char tab[32];

void timer(void)
{
   tick++;
}
END_OF_FUNCTION(timer)

static void timer2(void)
{
   tick++;
}
END_OF_STATIC_FUNCTION(timer2)

int foo(void)
{
   LOCK_VARIABLE(tick);
   LOCK_FUNCTION(timer);
   LOCK_FUNCTION(timer2);
   LOCK_DATA(tab, sizeof(tab));
   LOCK_CODE(timer, (long)timer_end - (long)timer);
   cout << "end";
   return 0;
}

gives zero warning wen compiled with "gpp -Wall -c lock.cpp". So I can't fix
it.

--
Eric Botcazou
ebotcazou@xxxxxxxxxx



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