[so] Warning help
Lucian Cojocar
cojocar at gmail.com
Mon Mar 30 13:37:10 EEST 2009
On 03/30/09 13:32, Dumitru Sorin wrote:
> la mine e definit ca:
> word_t* temp = command->params;
> unde command e un simple_command_t* venit de la parser.
>
Tu dai free pe temp->string, care în parser.h e definit:
const char *
Ca să scapi de warning, ai putea să faci cast la void *.
Lucian
> On Mon, Mar 30, 2009 at 1:26 PM, Cosmin Ratiu<cosminratiu at gmail.com> wrote:
>
>> On Mon, Mar 30, 2009 at 1:13 PM, Dumitru Sorin<dumitru.sorin87 at gmail.com>wrote:
>>
>>> Salut,
>>>
>>> gcc imi da warningul de mai jos la un free la free(temp->string), unde
>>> temp = word_t*. Word_t* provine
>>> din structura returnata de parser. Cum pot sa scap de warningul asta?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3374 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20090330/0f4e32ee/attachment-0001.bin>
More information about the so
mailing list