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 modfl


Hi

Any thoughts on how to fix this warning?

../../../../../newlib-cvs/src/newlib/libm/common/modfl.c: In function
'modfl':
../../../../../newlib-cvs/src/newlib/libm/common/modfl.c:39:3: warning:
passing argument 2 of 'modf' from incompatible pointer type [enabled by
default]
   return modf(x, iptr);
   ^
In file included from
../../../../../newlib-cvs/src/newlib/libm/common/modfl.c:31:0:
/users/joel/test-gcc/newlib-cvs/src/newlib/libc/include/math.h:114:15:
note: expected 'double *' but argument is of type 'long double *'
 extern double modf _PARAMS((double, double *));


-- 
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]