List Info

Thread: cinepaint-0.20-2 IRIX bug




cinepaint-0.20-2 IRIX bug
user name
2006-02-18 19:44:27

hello,

got the following errors using mipspro 7.43 and irix 6.5.29:

cc-1515 c99: ERROR File = image.c, Line = 966
 ; A value of type "int" cannot be assigned to an entity of type "char *".

       ; data = calloc (sizeof (char), *size);
    ;         ^
cc-1515 c99: ERROR File = image.c, Line = 993
 ; A value of type "int" cannot be assigned to an entity of type "char *".

       ; data = calloc (sizeof (char), size);
      ;       ^
cc-1515 c99: ERROR File = image.c, Line = 1020
  A value of type "int" cannot be assigned to an entity of type "char *".

       ; data = calloc (sizeof (char), size);
      ;       ^
cc-1515 c99: ERROR File = image.c, Line = 1047
  A value of type "int" cannot be assigned to an entity of type "char *".

       ; data = calloc (sizeof (char), size);
      ;       ^
cc-1515 c99: ERROR File = image.c, Line = 1074
  A value of type "int" cannot be assigned to an entity of type "char *".

       ; data = calloc (sizeof (char), size);
      ;       ^
cc-1515 c99: ERROR File = image.c, Line = 1100
  A value of type "int" cannot be assigned to an entity of type "char *".

       ; data = calloc (sizeof (char), size);
      ;       ^

thanks in advance

-- 
AH Computer-Systeme
Goetz Fischer
Senior Consultant
Phone: +49(0)7225/98 98 79
Fax:   +49(0)7225/28 64
eMail: ah-online.com">g.fischerah-online.com
http://www.ah-online.com
http://www.ah-webhosting.com
cinepaint-0.20-2 IRIX bug
user name
2006-02-21 15:36:56
On Sat, Feb 18, 2006 at 08:44:27PM +0100, g.fischerah-online.com wrote:
> 
> hello,
> 
> got the following errors using mipspro 7.43 and irix
6.5.29:
> 
> /cc-1515 c99: ERROR File = image.c, Line = 966
>  A value of type "int" cannot be assigned
to an entity of type "char *".
> 
>        data = calloc (sizeof (char), *size);
             ^
Try changing that line to:
data = (char*)calloc (sizeof (char), *size);
The same for the other lines.

This is really the proper way to write the code.  MIPSpro
insists on it,
while many other compilers are willing to let you be sloppy.
 

If you do get it built, please create patches to submit to
Robin so that
other people can benefit from your efforts.

> cc-1515 c99: ERROR File = image.c, Line = 993
>  A value of type "int" cannot be assigned
to an entity of type "char *".
> 
>        data = calloc (sizeof (char), size);
>             ^
> cc-1515 c99: ERROR File = image.c, Line = 1020
>  A value of type "int" cannot be assigned
to an entity of type "char *".
> 
>        data = calloc (sizeof (char), size);
>             ^
> cc-1515 c99: ERROR File = image.c, Line = 1047
>  A value of type "int" cannot be assigned
to an entity of type "char *".
> 
>        data = calloc (sizeof (char), size);
>             ^
> cc-1515 c99: ERROR File = image.c, Line = 1074
>  A value of type "int" cannot be assigned
to an entity of type "char *".
> 
>        data = calloc (sizeof (char), size);
>             ^
> cc-1515 c99: ERROR File = image.c, Line = 1100
>  A value of type "int" cannot be assigned
to an entity of type "char *".
> 
>        data = calloc (sizeof (char), size);
>             ^
> /
> thanks in advance
> 
> -- 
> AH Computer-Systeme
> Goetz Fischer
> Senior Consultant
> Phone: +49(0)7225/98 98 79
> Fax:   +49(0)7225/28 64
> eMail: g.fischerah-online.com
> http://www.ah-online.com
> http://www.ah-webhosting
.com
> 

-- 
Joshua D. Boyd
jdboydjdboyd.net
http://www.jdboyd.net/
http://www.joshuaboyd.org/



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep
through log files
for problems?  Stop!  Download the new AJAX search engine
that makes
searching your log files as easy as surfing the  web. 
DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Cinepaint-developers mailing list
Cinepaint-developerslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ci
nepaint-developers
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )