[mpich-discuss] warning: assignment makes pointer from integer without a cast

Antoine Rougier rougier at par.tuwien.ac.at
Tue Dec 17 02:47:00 CST 2013


Hello,

I think your issue is because in line 38 you cast the return of malloc
as a int and not a int*.

Best,

Antoine Rougier

On 12/17/2013 05:52 AM, Soheil Hooshdaran wrote:
> Hello.
> When 'mpicc'ing' my program, I get these warnings:
> 
> /media/TOSHIBA/Hooshdaran_p2.c: In function ‘main’:
> /media/TOSHIBA/Hooshdaran_p2.c:38:5: warning: assignment makes pointer
> from integer without a cast [enabled by default]
> /media/TOSHIBA/Hooshdaran_p2.c:39:14: warning: initialization makes
> pointer from integer without a cast [enabled by default]
> /media/TOSHIBA/Hooshdaran_p2.c:84:11: warning: assignment makes pointer
> from integer without a cast [enabled by default]
> 
> Why are they produced? I attach the program file for you
> 
> 
> _______________________________________________
> discuss mailing list     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 555 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20131217/ce82c54a/attachment.sig>


More information about the discuss mailing list