aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-03-25 13:55:59 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1994-03-25 13:55:59 -0500
commit6cc902a1c4ff6386358a4b5946ebdcf0ecf739eb (patch)
treeaf21b49e64198e750acc255759bbc1bd4a300d07 /gcc/c-decl.c
parentc4e8f305b4e8c95e2f0783a8fba7a6e57cf0be19 (diff)
downloadgcc-6cc902a1c4ff6386358a4b5946ebdcf0ecf739eb.zip
gcc-6cc902a1c4ff6386358a4b5946ebdcf0ecf739eb.tar.gz
gcc-6cc902a1c4ff6386358a4b5946ebdcf0ecf739eb.tar.bz2
(push_parm_decl): Move decl of unused variable OLDDECL into #if 0
block. From-SVN: r6872
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index e0794bc..13b51f9 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -3655,7 +3655,7 @@ void
push_parm_decl (parm)
tree parm;
{
- tree decl, olddecl;
+ tree decl;
int old_immediate_size_expand = immediate_size_expand;
/* Don't try computing parm sizes now -- wait till fn is called. */
immediate_size_expand = 0;
@@ -3668,6 +3668,7 @@ push_parm_decl (parm)
#if 0
if (DECL_NAME (decl))
{
+ tree olddecl;
olddecl = lookup_name (DECL_NAME (decl));
if (pedantic && olddecl != 0 && TREE_CODE (olddecl) == TYPE_DECL)
pedwarn_with_decl (decl, "ANSI C forbids parameter `%s' shadowing typedef");
@@ -5564,10 +5565,8 @@ finish_enum (enumtype, values)
tree minnode = 0, maxnode = 0;
register HOST_WIDE_INT maxvalue = 0;
register HOST_WIDE_INT minvalue = 0;
- register int i;
unsigned precision = 0;
int toplevel = global_binding_level == current_binding_level;
- int temporary = allocation_temporary_p ();
if (in_parm_level_p ())
warning ("enum defined inside parms");