This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]