Diego Nieto Cid, le dim. 05 oct. 2025 20:31:35 +0100, a ecrit:
> So in the hurd package build log there appears this couple of log
> messages:
> 
>     ../../nfsd/loop.c: In function 'server_loop':
>     ../../nfsd/loop.c:41:12: warning: cast from pointer to integer of 
> different size [-Wpointer-to-int-cast]
>        41 |   int fd = (int) arg;
>           |            ^
> 
>     ../../nfsd/main.c: In function 'create_server_thread':
>     ../../nfsd/main.c:47:54: warning: cast to pointer from integer of 
> different size [-Wint-to-pointer-cast]
>        47 |   fail = pthread_create (&thread, NULL, server_loop, (void *) 
> socket);
>           |   
> 
> Is there really no way to get this warning fixed?

There is, yes, you can go through (intptr_t): from int to intptr_t then
to void*, and from void* to intptr_t, and then to int (that last one can
be left implicit).

Samuel

Reply via email to