diff options
author | aj <aj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-07 19:11:59 +0000 |
---|---|---|
committer | aj <aj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-07 19:11:59 +0000 |
commit | f82b06e05de9a4f9fc2265c89df0829f647cd609 (patch) | |
tree | d225fa5aa22af2d34ad3be50332a336d045f1610 /gcc/gengtype.c | |
parent | 1d881c0295f0f46eb3ce5d1c674b9bb52daccc34 (diff) | |
download | gcc-f82b06e05de9a4f9fc2265c89df0829f647cd609.tar.gz |
2003-07-07 Andreas Jaeger <aj@suse.de>
* genextract.c: Convert remaining prototypes to ISO C90.
* cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
* fold-const.c (fold_single_bit_test): Likewise.
* diagnostic.c (default_diagnostic_finalizer): Likewise.
* cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
* gengtype.c (write_array): Generate ISO C90 prototypes.
* genflags.c (gen_proto): Generate ISO C90 prototypes.
For cp:
2003-07-07 Andreas Jaeger <aj@suse.de>
* friend.c: Convert to ISO C90 prototypes.
* Make-lang.in ($(srcdir)/cp/cfns.h): Use ANSI-C as output
language.
* cfns.h: Regenerate.
* typeck.c: Convert remaining prototypes to ISO C90.
* search.c: Likewise.
* decl2.c (build_expr_from_tree): Convert prototype to ISO C90.
* semantics.c (expand_or_defer_fn): Likewise
* mangle.c (discriminator_for_string_literal): Likewise.
* g++spec.c (lang_specific_driver): Likewise.
* search.c (lookup_base_r): Remove unused variable.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69050 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gengtype.c')
-rw-r--r-- | gcc/gengtype.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/gcc/gengtype.c b/gcc/gengtype.c index 101b3782511..79e763cc7e1 100644 --- a/gcc/gengtype.c +++ b/gcc/gengtype.c @@ -2623,12 +2623,11 @@ write_array (outf_p f, pair_p v, const struct write_types_data *wtd) oprintf (f, "static void gt_%sa_%s\n", wtd->param_prefix, v->name); oprintf (f, " (void *, void *, gt_pointer_operator, void *);\n"); - oprintf (f, "static void gt_%sa_%s (this_obj, x_p, op, cookie)\n", + oprintf (f, "static void gt_%sa_%s (void *this_obj ATTRIBUTE_UNUSED,\n", wtd->param_prefix, v->name); - oprintf (d.of, " void *this_obj ATTRIBUTE_UNUSED;\n"); - oprintf (d.of, " void *x_p ATTRIBUTE_UNUSED;\n"); - oprintf (d.of, " gt_pointer_operator op ATTRIBUTE_UNUSED;\n"); - oprintf (d.of, " void *cookie ATTRIBUTE_UNUSED;\n"); + oprintf (d.of, " void *x_p ATTRIBUTE_UNUSED,\n"); + oprintf (d.of, " gt_pointer_operator op ATTRIBUTE_UNUSED,\n"); + oprintf (d.of, " void *cookie ATTRIBUTE_UNUSED)\n"); oprintf (d.of, "{\n"); d.prev_val[0] = d.prev_val[1] = d.prev_val[2] = d.val = v->name; d.process_field = write_types_local_process_field; @@ -2639,9 +2638,8 @@ write_array (outf_p f, pair_p v, const struct write_types_data *wtd) d.opt = v->opt; oprintf (f, "static void gt_%sa_%s (void *);\n", wtd->prefix, v->name); - oprintf (f, "static void\ngt_%sa_%s (x_p)\n", + oprintf (f, "static void\ngt_%sa_%s (void *x_p ATTRIBUTE_UNUSED)\n", wtd->prefix, v->name); - oprintf (f, " void *x_p ATTRIBUTE_UNUSED;\n"); oprintf (f, "{\n"); d.prev_val[0] = d.prev_val[1] = d.prev_val[2] = d.val = v->name; d.process_field = write_types_process_field; |