summaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2008-02-25 11:50:17 +0000
committerBen Elliston <bje@gcc.gnu.org>2008-02-25 22:50:17 +1100
commit98266db06cfe6cdf30e6e6052f056ec1277b49ce (patch)
tree519924376bc8c345af3b0afd300e39302e655ba8 /gcc/c-decl.c
parent93e501259f8eddd9c9e20d9e601335d7f40c4eac (diff)
downloadgcc-98266db06cfe6cdf30e6e6052f056ec1277b49ce.tar.gz
re PR other/32948 (five warnings and a patch)
fixincludes/ PR other/32948 * fixincl.c (fix_applies): Remove unused variable `name_len'. gcc/ PR other/32948 * c-decl.c (grokdeclarator): Remove unused local variables `typedef_type' and `type_as_written'. * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges): Remove unused local variable `has_hot_blocks'. (fix_crossing_conditional_branches): Remove unused local variable `prev_bb'. From-SVN: r132618
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 1af84da3940..4e9564d25e1 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -3977,7 +3977,6 @@ grokdeclarator (const struct c_declarator *declarator,
int volatilep;
int type_quals = TYPE_UNQUALIFIED;
const char *name, *orig_name;
- tree typedef_type = 0;
bool funcdef_flag = false;
bool funcdef_syntax = false;
int size_varies = 0;
@@ -4051,7 +4050,6 @@ grokdeclarator (const struct c_declarator *declarator,
type = integer_type_node;
}
- typedef_type = type;
size_varies = C_TYPE_VARIABLE_SIZE (type);
/* Diagnose defaulting to "int". */
@@ -4701,7 +4699,6 @@ grokdeclarator (const struct c_declarator *declarator,
if (decl_context == PARM)
{
- tree type_as_written;
tree promoted_type;
/* A parameter declared as an array of T is really a pointer to T.
@@ -4737,8 +4734,6 @@ grokdeclarator (const struct c_declarator *declarator,
else if (type_quals)
type = c_build_qualified_type (type, type_quals);
- type_as_written = type;
-
decl = build_decl (PARM_DECL, declarator->u.id, type);
DECL_SOURCE_LOCATION (decl) = declarator->id_loc;
if (size_varies)