[sr-dev] git:master: Fixed compile warnings - casts from void at memory allocation

Anca Vamanu anca.vamanu at 1and1.ro
Tue Jan 17 15:26:12 CET 2012


Hi,

That file was wrongly committed, it shouldn't have been. I have reverted 
it now.

Thanks and regards,
Anca


On 01/17/2012 04:05 PM, Daniel-Constantin Mierla wrote:
> Hello,
>
> what compiler and version threw the warnings you tried to fix in this
> commit? I pulled git devel version and now get a lot of warnings related
> to clist operations (e.g., from timer files, tm module), before they
> were not printed for me.
>
> I compiled on ubuntu 10.10, gcc 4.6.1, and mac os x, gcc 4.2.1, the
> warning are like:
>
> make
>
> In file included from local_timer.h:41,
> from tcp_read.c:80:
> timer_funcs.h: In function ‘timer_redist’:
> timer_funcs.h:155: warning: assignment from incompatible pointer type
> timer_funcs.h:155: warning: assignment from incompatible pointer type
> timer_funcs.h: In function ‘timer_run’:
> timer_funcs.h:171: warning: assignment from incompatible pointer type
> timer_funcs.h:171: warning: assignment from incompatible pointer type
>
> make modules modules=modules/tm
>
> CC (gcc) [M tm.so] config.o
> In file included from lock.h:61,
> from timer.h:116,
> from config.c:35:
> h_table.h: In function ‘insert_into_hash_table_unsafe’:
> h_table.h:551: warning: assignment from incompatible pointer type
> h_table.h: In function ‘remove_from_hash_table_unsafe’:
> h_table.h:566: warning: assignment from incompatible pointer type
> h_table.h:566: warning: assignment from incompatible pointer type
>
> Cheers,
> Daniel




More information about the sr-dev mailing list