Clean up GCC warnings.

* src/reader.c (copy_action): `buf' is not used.
(parse_skel_decl): Be static.
* src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'.
* src/options.h (create_long_option_table): Have a real prototype.
* lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete)
(hash_delete_at): Return const void *.
Adjust casts to preserve the const.
This commit is contained in:
Akim Demaille
2001-12-10 09:05:47 +00:00
parent 75addd5e5f
commit a870c5670e
6 changed files with 36 additions and 23 deletions

View File

@@ -966,7 +966,7 @@ parse_muscle_decl (void)
/*---------------------------------.
| Parse a double quoted parameter. |
| Parse a double quoted parameter. |
`---------------------------------*/
static const char *
@@ -994,7 +994,7 @@ parse_dquoted_param (const char *from)
else
break;
}
obstack_1grow (&param_obstack, '\0');
param = obstack_finish (&param_obstack);
@@ -1014,7 +1014,7 @@ parse_dquoted_param (const char *from)
| Parse what comes after %skeleton. |
`----------------------------------*/
void
static void
parse_skel_decl (void)
{
skeleton = parse_dquoted_param ("%skeleton");
@@ -1133,7 +1133,6 @@ copy_action (symbol_list *rule, int stack_offset)
{
int c;
int count;
char buf[4096];
/* offset is always 0 if parser has already popped the stack pointer */
if (semantic_parser)