This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: General cleanup
Ken Werner wrote:
On Wednesday 26 November 2008 00:04, Howland Craig D (Craig) wrote:
The attached patch does a lot of cleanup (primarily with function
prototypes) aimed at reducing the number of compilation warnings.
(Using gcc -Wall -Wstrict-prototypes -Wmissing-prototypes, the changes
supplied get rid of ~257 warnings. 139 of them were "statement has no
effect" warnings, and almost all the rest were prototype related.) It
does not get rid of all of the prototype-related warnings, as I left
many
that are either of low interest or much work to fix, but I made a really
good dent in them.
Craig
Hi Craig,
I noticed you changed the signature of gettimeofday in sys/time.h. According
to the Open Group specification the type of the second argument should void*
or am I missing something? Here's the URL:
http://www.opengroup.org/onlinepubs/009695399/functions/gettimeofday.html
Regards
Ken
Hi Ken,
Thanks for catching this. I had forgotten about:
http://sourceware.org/ml/newlib/2007/msg00785.html
I have changed the prototype back and changed the prototype in
libc/syscalls/sysgettod.c to match.
-- Jeff J.