This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Warning in makedoc.c


Hi

On a 64-bit Fedora 20 machine, I see this building newlib:

../../../../gcc/newlib/doc/makedoc.c: In function ‘push_number’:
../../../../gcc/newlib/doc/makedoc.c:273:12: warning: cast from pointer
to integer of different size [-Wpointer-to-int-cast]
*isp = (int)(*pc);
^
../../../../gcc/newlib/doc/makedoc.c: In function ‘bang’:
../../../../gcc/newlib/doc/makedoc.c:1341:2: warning: cast to pointer
from integer of different size [-Wint-to-pointer-cast]
*(int *)((isp[0])) = isp[-1];
^
../../../../gcc/newlib/doc/makedoc.c: In function ‘atsign’:
../../../../gcc/newlib/doc/makedoc.c:1349:15: warning: cast to pointer
from integer of different size [-Wint-to-pointer-cast]
isp[0] = *(int *)(isp[0]);

Can makedoc.c use int32_t?

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]