[so2] [Linux][Tema1] Warnings
Ghennadi Procopciuc
unix140 at gmail.com
Tue Mar 12 23:01:20 EET 2013
On Tue, Mar 12, 2013 at 10:37 PM, Mihail Costea
<mihail.costea90 at gmail.com> wrote:
> Primesc urmatoarele warning-uri la compilare:
>
> include/linux/llist.h: In function ‘llist_add’:
> include/linux/llist.h:160: warning: initialization makes pointer from
> integer without a cast
> include/linux/llist.h:160: warning: initialization makes pointer from
> integer without a cast
> /root/tema1/sci.c: In function ‘sci_interceptor’:
> /root/tema1/sci.c:90: warning: format ‘%lx’ expects type ‘long
> unsigned int’, but argument 3 has type ‘int’
> /root/tema1/sci.c:90: warning: format ‘%lx’ expects type ‘long
> unsigned int’, but argument 10 has type ‘int’
> /root/tema1/sci.c:96: warning: format ‘%lx’ expects type ‘long
> unsigned int’, but argument 3 has type ‘int’
> /root/tema1/sci.c:96: warning: format ‘%lx’ expects type ‘long
> unsigned int’, but argument 10 has type ‘int’
>
> Nu stiu ce sa le fac fiindca nu constau in codul scris de mine.
> Vom fi depuncatati si pentru acestea?
>
> --
> Mihail Costea
> _______________________________________________
> http://ocw.cs.pub.ro/courses/so2/resurse/lista-discutii
Dacă declari pid-ul și syscall-ul ca fiind long și nu int, scapi de
cele cu "... format %lx ...".
--
Numai bine,
Ghennadi Procopciuc
More information about the so2
mailing list