diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2012-09-13 22:20:14 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2012-09-13 22:20:14 +0000 |
commit | 12308bc61de47a985b260889194156021da3cc2e (patch) | |
tree | b8054d7aa7fba519c4adca3de68c5ef0eb1519e0 /gcc/cp/tree.c | |
parent | 9feb29df994174d571b3fba6e6a60c24a2dc111c (diff) | |
download | gcc-12308bc61de47a985b260889194156021da3cc2e.zip gcc-12308bc61de47a985b260889194156021da3cc2e.tar.gz gcc-12308bc61de47a985b260889194156021da3cc2e.tar.bz2 |
typeck.c (build_indirect_ref, [...]): Remove uses of ATTRIBUTE_UNUSED on the parameters.
2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
* typeck.c (build_indirect_ref, build_function_call,
build_function_call_vec, build_binary_op, build_unary_op,
build_compound_expr, build_c_cast, build_modify_expr): Remove
uses of ATTRIBUTE_UNUSED on the parameters.
* class.c (set_linkage_according_to_type, resort_type_method_vec,
dfs_find_final_overrider_post, empty_base_at_nonzero_offset_p):
Likewise.
* decl.c (local_variable_p_walkfn): Likewise.
* except.c (wrap_cleanups_r, check_noexcept_r): Likewise.
* error.c (find_typenames_r): Likewise.
* tree.c (verify_stmt_tree_r, bot_replace,
handle_java_interface_attribute, handle_com_interface_attribute,
handle_init_priority_attribute, c_register_addr_space): Likewise.
* cp-gimplify.c (cxx_omp_clause_default_ctor): Likewise.
* cp-lang.c (objcp_tsubst_copy_and_build): Likewise.
* pt.c (unify_success, unify_invalid, instantiation_dependent_r):
Likewise.
* semantics.c (dfs_calculate_bases_pre): Likewise.
* decl2.c (fix_temporary_vars_context_r, clear_decl_external):
Likewise.
* parser.c (cp_lexer_token_at, cp_parser_omp_clause_mergeable,
cp_parser_omp_clause_nowait, cp_parser_omp_clause_ordered,
cp_parser_omp_clause_untied): Likewise.
* mangle.c (write_unnamed_type_name,
discriminator_for_string_literal): Likewise.
* search.c (dfs_accessible_post, dfs_debug_mark): Likewise.
* lex.c (handle_pragma_vtable, handle_pragma_unit,
handle_pragma_interface, handle_pragma_implementation,
handle_pragma_java_exceptions): Likewise.
From-SVN: r191281
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r-- | gcc/cp/tree.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index ce1af73..7dddf22 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -1915,9 +1915,7 @@ count_trees (tree t) /* Called from verify_stmt_tree via walk_tree. */ static tree -verify_stmt_tree_r (tree* tp, - int* walk_subtrees ATTRIBUTE_UNUSED , - void* data) +verify_stmt_tree_r (tree* tp, int * /*walk_subtrees*/, void* data) { tree t = *tp; htab_t *statements = (htab_t *) data; @@ -2155,9 +2153,7 @@ bot_manip (tree* tp, int* walk_subtrees, void* data) variables. */ static tree -bot_replace (tree* t, - int* walk_subtrees ATTRIBUTE_UNUSED , - void* data) +bot_replace (tree* t, int* /*walk_subtrees*/, void* data) { splay_tree target_remap = ((splay_tree) data); @@ -3001,7 +2997,7 @@ const struct attribute_spec cxx_attribute_table[] = static tree handle_java_interface_attribute (tree* node, tree name, - tree args ATTRIBUTE_UNUSED , + tree /*args*/, int flags, bool* no_add_attrs) { @@ -3026,8 +3022,8 @@ handle_java_interface_attribute (tree* node, static tree handle_com_interface_attribute (tree* node, tree name, - tree args ATTRIBUTE_UNUSED , - int flags ATTRIBUTE_UNUSED , + tree /*args*/, + int /*flags*/, bool* no_add_attrs) { static int warned; @@ -3056,7 +3052,7 @@ static tree handle_init_priority_attribute (tree* node, tree name, tree args, - int flags ATTRIBUTE_UNUSED , + int /*flags*/, bool* no_add_attrs) { tree initp_expr = TREE_VALUE (args); @@ -3770,8 +3766,7 @@ cp_free_lang_data (tree t) should be a C target hook. But currently this is not possible, because this function is called via REGISTER_TARGET_PRAGMAS. */ void -c_register_addr_space (const char *word ATTRIBUTE_UNUSED, - addr_space_t as ATTRIBUTE_UNUSED) +c_register_addr_space (const char * /*word*/, addr_space_t /*as*/) { } |