re PR java/21428 (bogus warning: unused parameter 'this')
2006-01-30 Andrew Haley <aph@redhat.com> PR java/21428 * parse.y: (source_start_java_method): Mark DECL_ARTIFICIAL("this"). From-SVN: r110400
This commit is contained in:
parent
03bf3bc105
commit
6bb862cc97
@ -1,3 +1,8 @@
|
||||
2006-01-30 Andrew Haley <aph@redhat.com>
|
||||
|
||||
PR java/21428
|
||||
* parse.y: (source_start_java_method): Mark DECL_ARTIFICIAL("this").
|
||||
|
||||
2006-01-21 Joseph S. Myers <joseph@codesourcery.com>
|
||||
|
||||
* jv-scan.c (version), jcf-dump.c (version), gjavah.c (version):
|
||||
|
@ -7571,6 +7571,9 @@ source_start_java_method (tree fndecl)
|
||||
DECL_FINAL (parm_decl) = 1;
|
||||
}
|
||||
|
||||
if (name == this_identifier_node)
|
||||
DECL_ARTIFICIAL (parm_decl) = 1;
|
||||
|
||||
BLOCK_CHAIN_DECL (parm_decl);
|
||||
}
|
||||
tem = BLOCK_EXPR_DECLS (DECL_FUNCTION_BODY (current_function_decl));
|
||||
|
Loading…
Reference in New Issue
Block a user