[so] [Tema5]Warning la compilare (suspect) Linux

Lucian Cojocar cojocar at gmail.com
Tue Jun 16 12:57:40 EEST 2009


ana-maria lepar wrote:
> Salutare,
> 
> Va deranjez din nou cu o intrebare .
> 
> Primesc un warning la compilare (in server)  si nu stiu cum sa il rezolv:
> 
> ---------------------
>         server.c: In function âinit_aiocbâ:
>         server.c:319: warning: cast from pointer to integer of different
> size
> ----------------------
> 
> Linia de cod unde primesc warningul este :
> 
>             iocb->aio_buf = (u_int64_t) buf;
> 
>
Bănuiesc că sizeof (void *) e 4. Dacă e 4 încearcă să faci întâi cast la 
uint32_t.

Lucian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3361 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20090616/d9c95523/attachment.bin>


More information about the so mailing list