Fix for compile time warning in binutils/nlmconv.c
Nick Clifton
nickc@redhat.com
Tue Feb 15 18:17:00 GMT 2005
More information about the Binutils mailing list
Tue Feb 15 18:17:00 GMT 2005
- Previous message (by thread): [PATCH] Additional TC_EQUAL_IN_INSN check
- Next message (by thread): Fix for compile time warning in binutils/nlmconv.c
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Guys, I am going to apply the patch below to fix a compile time warning when building nlmconv.c, although I am not sure if this is the proper way to fix the problem. The reason is that I am not sure why the parameterless prototype for localtime() is included at all. Presumably there are build environments out there where this function is not prototyped, or the header containing the prototype is not pulled in. To me this sounds like a configure problem, but for now I am keeping things simple. Cheers Nick binutils/ChangeLog 2005-02-15 Nick Clifton <nickc@redhat.com> * nlmconv.c: Provide a full prototype for the localtime() function in order to avoid a compile time warning. Index: binutils/nlmconv.c =================================================================== RCS file: /cvs/src/src/binutils/nlmconv.c,v retrieving revision 1.21 diff -c -3 -p -r1.21 nlmconv.c *** binutils/nlmconv.c 4 Jan 2005 15:51:47 -0000 1.21 --- binutils/nlmconv.c 15 Feb 2005 14:20:18 -0000 *************** *** 59,65 **** extern char *strerror (int); #ifndef localtime ! extern struct tm *localtime (); #endif #ifndef SEEK_SET --- 59,65 ---- extern char *strerror (int); #ifndef localtime ! extern struct tm *localtime (const time_t *); #endif #ifndef SEEK_SET
- Previous message (by thread): [PATCH] Additional TC_EQUAL_IN_INSN check
- Next message (by thread): Fix for compile time warning in binutils/nlmconv.c
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list