[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compiling Osirix with GnuStep
From: |
David Chisnall |
Subject: |
Re: Compiling Osirix with GnuStep |
Date: |
Wed, 21 Oct 2009 17:09:46 +0100 |
On 21 Oct 2009, at 15:58, delafond gerard wrote:
Papyrus3/PapyFiles3.c:84: attention : deprecated conversion from
string
constant to ‘char*’
You can safely ignore these. The problem is that string constants are
const char*, and implicitly casting them to char* drops the
qualifier. As string constants are, by definition, immutable, any
attempt to modify them will cause a run time abort. People often
write char* when they mean const char* though, so it's not really a
problem.
I think you can turn this option off with -Wno-write-strings or
something similar.
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.
David
-- Send from my Jacquard Loom