Path: chuka.playstation.co.uk!news From: "Rikki Prince" Newsgroups: scee.yaroze.freetalk.english Subject: George Bain Tutorial Warnings Date: Sat, 13 Jul 2002 03:08:27 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 26 Message-ID: NNTP-Posting-Host: pc-62-31-230-115-ba.blueyonder.co.uk X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.3018.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 I hope people don't mind me posting this here - it just seems all other groups are pretty much dead, so asking here is the only way to get a response :-) Anyway, onto the question. In George Bain's tutorials, when they are compiled, they all (well, I'm assuming all, as they all should use the same code for controllers) spit out the following: warning: passing arg 1 of `GetPadBuf' from incompatible pointer type warning: passing arg 2 of `GetPadBuf' from incompatible pointer type Now I'm pretty sure this is because George's code is passing a pointer (to a pointer, in fact) to his own data structure (cntrl_data) to GetPadBuf, while GetPadBuf is expecting a pointer to a pointer to a char. Is there anyway to avoid this warning, as I'm trying to do a similar thing to make some 'library files' (basically just the output files with .lib instead of .o) but when I come to compile other things and include these .lib files as input files, it says the function which calls GetPadBuf is unreferenced (etc etc blah de blah). Can anyone suggest anything? Cheers, Rikki