Re: [mpich-discuss] warning: assignment makes pointer from integer without a cast
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 [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss
participants (1)
-
Antoine Rougier