[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
unused function in time_r.c
From: |
Eric Blake |
Subject: |
unused function in time_r.c |
Date: |
Fri, 24 Mar 2006 21:39:41 -0700 |
User-agent: |
Thunderbird 1.5 (Windows/20051201) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Following Paul's patch on Mar 11, the time_r module caused a compile warning:
make[2]: Entering directory `/home/eblake/gnulib/testdir4380/build/lib'
gcc -DHAVE_CONFIG_H -I. -I../../lib -I.. -Wall -Werror -c
../../lib/time_r.c
../../lib/time_r.c:31: warning: 'copy_string_result' defined but not used
make[2]: *** [time_r.o] Error 1
I assume it was okay that I checked in this obvious patch:
2006-03-24 Eric Blake <address@hidden>
* time_r.c (copy_string_result): Remove, as it is no longer used.
- --
Life is short - so eat dessert first!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEJMmJ84KuGfSFAYARAsLVAJ49/c0TeAe5iA25GeZCKWcN2Rq97gCfV9zj
u2FfH7+kJ+rUtR7VyIlGyX8=
=xUFw
-----END PGP SIGNATURE-----
Index: lib/time_r.c
===================================================================
RCS file: /sources/gnulib/gnulib/lib/time_r.c,v
retrieving revision 1.5
diff -u -p -r1.5 time_r.c
--- lib/time_r.c 12 Mar 2006 07:58:12 -0000 1.5
+++ lib/time_r.c 25 Mar 2006 03:47:03 -0000
@@ -26,14 +26,6 @@
#include <string.h>
-static char *
-copy_string_result (char *dest, char const *src)
-{
- if (! src)
- return 0;
- return strcpy (dest, src);
-}
-
static struct tm *
copy_tm_result (struct tm *dest, struct tm const *src)
{
- unused function in time_r.c,
Eric Blake <=