Yoann Vandoorselaere <[EMAIL PROTECTED]> wrote: >> > This patch fix constness warning in the GnuLib hash module.
That patch fixes three of the four warnings produced by gcc -Wcast-qual. The final one is here: void * hash_insert (Hash_table *table, const void *entry) { ... return (void *) entry; <<<======= } What's the gain in fixing three of them if one still remains? That last one looks unavoidable, given my requirement that the second parameter retain the `const' attribute. FYI, there are similar const-removing casts in many other modules. Look at all of the functions like memchr, memmem, strdup, etc., that take a const string and return a non-const pointer into that same string. _______________________________________________ bug-gnulib mailing list bug-gnulib@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnulib