This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[patch] Eliminate warnings in hcreate_r.c
- From: Ralf Corsepius <ralf dot corsepius at rtems dot org>
- To: "newlib at sourceware dot org" <newlib at sourceware dot org>
- Date: Tue, 17 Jul 2012 18:30:16 +0200
- Subject: [patch] Eliminate warnings in hcreate_r.c
Hi,
I am applying the patch below as "obvious".
It #ifdef's 0 some unused variables, gcc is complaining about.
Instead of deleting these variables, I am using #ifdef 0, because the
places the variables would be used later, have been #ifdef'ed 0 before.
Ralf
2012-07-17 Ralf Corsépius <ralf.corsepius@rtems.org>
* libc/search/hcreate_r.c (hdestroy_r): #ifdef 0 unused vars ie, idx.
diff --git a/newlib/libc/search/hcreate_r.c b/newlib/libc/search/hcreate_r.c
index 4ff758f..8aba524 100644
--- a/newlib/libc/search/hcreate_r.c
+++ b/newlib/libc/search/hcreate_r.c
@@ -123,9 +123,10 @@ hcreate_r(size_t nel, struct hsearch_data *htab)
void
hdestroy_r(struct hsearch_data *htab)
{
+#if 0
struct internal_entry *ie;
size_t idx;
-
+#endif
if (htab->htable == NULL)
return;