Path: chuka.playstation.co.uk!news From: James Shaughnessy Newsgroups: scee.yaroze.programming.3d_graphics Subject: GsLinkObject4 makes integer from pointer? Date: Tue, 11 Aug 1998 00:57:07 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 23 Message-ID: <35CF88D3.4762@manc.u-net.com> NNTP-Posting-Host: manc.u-net.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0 (Win95; I) Hello all, When compiling my 3D stuff (with -Wall) I always get this error: main.c:181: warning: passing arg 1 of 'GsLinkObject4' makes integer from pointer without a cast The code is correct: void InitObject(u_long memaddr, OBJECT *object) { ... GsLinkObject4((u_long *)memaddr+3, &object->gsdobj2, 0); } I guess this warning is normal and everyone gets it using -Wall, but can anyone explain exactly what it's warning me of and why? Thanks, Jim -- ----------------------------------------- James Shaughnessy james@manc.u-net.com http://www.netyaroze-europe.com/~shaughnj -----------------------------------------