Commit 430bb96b by Jeffrey A Law Committed by Jeff Law

class.c (alter_access): Remove unused label.

        * class.c (alter_access): Remove unused label.  Add braces
        around empty else clause.
        * lex.c (yyprint): Fix argument to printf.

From-SVN: r18887
parent 3ac2735b
Sun Mar 29 00:47:32 1998 Jeffrey A Law (law@cygnus.com)
* class.c (alter_access): Remove unused label. Add braces
around empty else clause.
* lex.c (yyprint): Fix argument to printf.
Sat Mar 28 17:43:52 1998 Mark Mitchell <mmitchell@usa.net> Sat Mar 28 17:43:52 1998 Mark Mitchell <mmitchell@usa.net>
* pt.c (tsubst): Clear TREE_USED for new FUNCTION_DECLs. * pt.c (tsubst): Clear TREE_USED for new FUNCTION_DECLs.
......
...@@ -1321,15 +1321,16 @@ alter_access (t, fdecl, access) ...@@ -1321,15 +1321,16 @@ alter_access (t, fdecl, access)
IDENTIFIER_POINTER (DECL_NAME (fdecl))); IDENTIFIER_POINTER (DECL_NAME (fdecl)));
} }
else else
{
/* They're changing the access to the same thing they changed /* They're changing the access to the same thing they changed
it to before. That's OK. */ it to before. That's OK. */
; ;
} }
}
else else
{ {
enforce_access (TYPE_BINFO (t), fdecl); enforce_access (TYPE_BINFO (t), fdecl);
alter:
DECL_ACCESS (fdecl) = tree_cons (t, access, DECL_ACCESS (fdecl)); DECL_ACCESS (fdecl) = tree_cons (t, access, DECL_ACCESS (fdecl));
return 1; return 1;
} }
......
...@@ -910,7 +910,7 @@ yyprint (file, yychar, yylval) ...@@ -910,7 +910,7 @@ yyprint (file, yychar, yylval)
t = yylval.ttype; t = yylval.ttype;
if (TREE_CODE (t) == TYPE_DECL || TREE_CODE (t) == TEMPLATE_DECL) if (TREE_CODE (t) == TYPE_DECL || TREE_CODE (t) == TEMPLATE_DECL)
{ {
fprintf (file, " `%s'", DECL_NAME (t)); fprintf (file, " `%s'", IDENTIFIER_POINTER (DECL_NAME (t)));
break; break;
} }
my_friendly_assert (TREE_CODE (t) == IDENTIFIER_NODE, 224); my_friendly_assert (TREE_CODE (t) == IDENTIFIER_NODE, 224);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment