[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Fix most warnings with gcc 4.4 on Linux
From: |
Christopher Brannon |
Subject: |
[PATCH] Fix most warnings with gcc 4.4 on Linux |
Date: |
Tue, 07 Sep 2010 09:22:43 -0500 |
Boris Du?ek <boris.dusek at gmail.com> writes:
> src/c/api/libspeechd.c:263: warning: assignment discards qualifiers from
> pointer target type
> - I don't feel like I am able to correctly solve this one in little time
Hello Boris,
inet_ntop returns const char *, but its return value is placed in a
variable of type char *.
We should also be checking the return values of malloc and inet_ntop in
this function.
I'll send along a patch, though I don't have time to test it right now.
-- Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL:
<http://lists.freebsoft.org/pipermail/speechd/attachments/20100907/826c42e2/attachment.pgp>
[PATCH] Fix most warnings with gcc 4.4 on Linux, Christopher Brannon, 2010/09/07