diff options
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r-- | gcc/java/class.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c index a4278ef..582183d 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -1211,8 +1211,8 @@ get_dispatch_table (tree type, tree this_class_addr) if (METHOD_ABSTRACT (method)) { if (! abstract_p) - warning_with_decl (method, - "abstract method in non-abstract class"); + warning ("%Habstract method in non-abstract class", + &DECL_SOURCE_FILE (method)); if (TARGET_VTABLE_USES_DESCRIPTORS) for (j = 0; j < TARGET_VTABLE_USES_DESCRIPTORS; ++j) @@ -1927,8 +1927,8 @@ layout_class_method (tree this_class, tree super_class, DECL_VINDEX (method_decl) = DECL_VINDEX (super_method); if (DECL_VINDEX (method_decl) == NULL_TREE && !CLASS_FROM_SOURCE_P (this_class)) - error_with_decl (method_decl, - "non-static method '%s' overrides static method"); + error ("%Hnon-static method '%D' overrides static method", + &DECL_SOURCE_LOCATION (method_decl), method_decl); } else if (! METHOD_FINAL (method_decl) && ! METHOD_PRIVATE (method_decl) |