Bad typecast when using --with-debug

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bad typecast when using --with-debug

Urs Holzer

Hello

There is a problem with a typecast when compiling on a 64bit
architecture (Linux). However, this problem turns up only when the
debugging options are on (i.e. when configure is called
with --with-debug which causes AMAYA_DEBUG to be on).

Here the error messages:

../../amaya/MENUconf.c: In function ‘void TemplatesCallbackDialog(int,
int, char*)’:
../../amaya/MENUconf.c:2581: error: cast from ‘char*’ to ‘int’ loses
precision
../../amaya/MENUconf.c: In function ‘void PasswordsCallbackDialog(int,
int, char*)’:
../../amaya/MENUconf.c:2670: error: cast from ‘char*’ to ‘int’ loses
precision

I used revision 1.271 of the file MENUconf.c (the newest one at time of
writing this).

Reply | Threaded
Open this post in threaded view
|

Re: Bad typecast when using --with-debug

Irene Vatton-2

On Thursday 24 January 2008 10:57, Urs Holzer wrote:

> Hello
>
> There is a problem with a typecast when compiling on a 64bit
> architecture (Linux). However, this problem turns up only when the
> debugging options are on (i.e. when configure is called
> with --with-debug which causes AMAYA_DEBUG to be on).
>
> Here the error messages:
>
> .../../amaya/MENUconf.c: In function ‘void TemplatesCallbackDialog(int,
> int, char*)’:
> .../../amaya/MENUconf.c:2581: error: cast from ‘char*’ to ‘int’ loses
> precision
> .../../amaya/MENUconf.c: In function ‘void PasswordsCallbackDialog(int,
> int, char*)’:
> .../../amaya/MENUconf.c:2670: error: cast from ‘char*’ to ‘int’ loses
> precision
>
> I used revision 1.271 of the file MENUconf.c (the newest one at time of
> writing this).

That problem is fixed
--
Irène Vatton @ INRIA Rhône-Alpes