[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compiling Osirix with GnuStep
From: |
delafond gerard |
Subject: |
Re: Compiling Osirix with GnuStep |
Date: |
Wed, 21 Oct 2009 19:39:05 +0200 |
User-agent: |
KMail/1.11.4 (Linux/2.6.29.6-desktop586-1mnb; KDE/4.2.4; i686; ; ) |
Le mercredi 21 octobre 2009, David Chisnall a écrit :
>
> > Papyrus3/PapyFiles3.c:153: erreur: invalid conversion from ‘void*’
> > to ‘char*’
>
> This one just looks strange. I can't think of any situations where
> this would not work. What is the code that is causing it? You should
> be allowed to cast from a void* to any pointer type, and at the most
> this kind of cast should raise a warning, not an error.
>
gPapyFile [theFileNb] = theFp;
if (inToOpen && inNameP)
{
153-> gPapyFilePath[ theFileNb] = malloc(
strlen( inNameP)+1);
strcpy( gPapyFilePath[ theFileNb], inNameP);
}
Thanks for your help.
Gerard