A patch for "unused parameter" warnings
Jeffrey A Law
law@hurl.cygnus.com
Wed Mar 31 18:59:00 GMT 1999
In message < 199903182102.QAA11258@caip.rutgers.edu >you write:
> Thu Mar 18 15:52:02 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
>
> * calls.c (initialize_argument_information): Mark parameters
> `num_actuals' and `n_named_args' with ATTRIBUTE_UNUSED.
>
> * dbxout.c (dbxout_start_new_source_file): Likewise for parameter
> `filename'.
> (dbxout_finish): Likewise for parameters `file' and `filename'.
> (dbxout_prepare_symbol): Likewise for parameter `decl'.
> (dbxout_begin_function): Likewise.
>
> * explow.c (hard_function_value): Likewise for parameter `func'.
>
> * function.c (locate_and_pad_parm): Likewise for parameter `fndecl'.
>
> * expmed.c (expand_divmod): Omit unused argument to `expand_abs'.
> * expr.c (expand_expr): Likewise.
> * expr.h (expand_abs): Delete unused argument from prototype.
> * optabs.c (expand_abs): Remove unused parameter `unsignedp'.
>
> * sdbout.c (sdbout_init): Mark parameter `syms' with ATTRIBUTE_UNUSED.
> (sdbout_end_block): Likewise for parameter `n'.
>
> * toplev.c (debug_define): Likewise for parameters `lineno' and
> `buffer'.
> (debug_undef): Likewise.
>
> * varasm.c (named_section): Likewise for parameter 'reloc'.
> (assemble_external): Likewise for parameter `decl'.
> (assemble_alias): Likewise for parameter `target'.
Looks fine to me. Thanks!
jeff
More information about the Gcc-patches
mailing list