This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[COMMITTED] Remove unused variables
- From: Siddhesh Poyarekar <siddhesh at redhat dot com>
- To: libc-alpha at sourceware dot org
- Date: Thu, 5 Dec 2013 10:02:14 +0530
- Subject: [COMMITTED] Remove unused variables
- Authentication-results: sourceware.org; auth=none
Hi,
I have pushed an obvious fix to remove a minor build warning that was
introduced by a recent patch.
Siddhesh
commit 232983e9a74e817377a5e76f2c3872c8a92685d0
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date: Thu Dec 5 09:58:58 2013 +0530
Remove unused variables in __stpncpy_chk
diff --git a/ChangeLog b/ChangeLog
index 793448f..c34668b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2013-12-05 Siddhesh Poyarekar <siddhesh@redhat.com>
+ * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
+
[BZ #15941]
* Makefile (INSTALL): Add install-plain.texi as the primary
dependency.
diff --git a/debug/stpncpy_chk.c b/debug/stpncpy_chk.c
index f9fa66c..0bc6ae2 100644
--- a/debug/stpncpy_chk.c
+++ b/debug/stpncpy_chk.c
@@ -25,9 +25,6 @@
char *
__stpncpy_chk (char *dest, const char *src, size_t n, size_t destlen)
{
- char c;
- char *s = dest;
-
if (__builtin_expect (destlen < n, 0))
__chk_fail ();