removed an unused parameter for show_symbol_list()
PATCH 1/1 removed an unused parameter for show_symbol_list()
Hi all!
A trivial patch to remove an unused parameter.
Is there some interest in patches to to be able to add -Wextra to gcc's flags?
The main parts are
- lots of (other) unused parameters which can't be deleted. So they should be marked __attribute__((unused)) - either explicitely or with a "__unused" (or similar) macro.
- And largest thing is "signed vs unsigned" AFAICS. So is the strategy to use/convert to "unsigned" if it makes sense (like bits_in_* variables) or use "signed" everywhere?
Bernd
---
show-parse.c | 2 +- symbol.h | 2 +- test-parsing.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-)
show-parse.c +0 -0
@@ -127,7 +127,7 @@ static void show_struct_member(const struct symbol
*sym)
printf("\n");
}
-void show_symbol_list(const struct symbol_list *list, const char *sep) +void show_symbol_list(const struct symbol_list *list)
{
struct symbol *sym;
const char *prepend = "";
symbol.h +0 -0
@@ -277,7 +277,7 @@ extern const char *modifier_string(unsigned long
mod);
extern void show_symbol(const struct symbol *);
extern int show_symbol_expr_init(const struct symbol *sym); extern void show_type_list(struct symbol *);
-extern void show_symbol_list(const struct symbol_list *, const char *); +extern void show_symbol_list(const struct symbol_list *);
extern void add_symbol(struct symbol_list **, struct symbol *); extern void bind_symbol(struct symbol *, struct ident *, enum
namespace);
test-parsing.c +2 -2
@@ -44,7 +44,7 @@ int main(int argc, char **argv)clean_up_symbols (list);#if 1 -show_symbol_list (list,"\n\n" ); +show_symbol_list (list);printf ("\n\n" );#endif
@@ -56,7 +56,7 @@ int main(int argc, char **argv)#if 1 // Show the end result. -show_symbol_list (list,"\n\n" ); +show_symbol_list (list);printf ("\n\n" );#endif }END_FOR_EACH_PTR_NOTAG (file);
Signature · 6 lines
1.7.2.1
--
mobile: +43 664 4416156 http://www.sysprog.at/
Linux Software Development, Consulting and Services