diff options
Diffstat (limited to 'gcc/objc')
-rw-r--r-- | gcc/objc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/objc/objc-act.c | 6 |
2 files changed, 5 insertions, 6 deletions
diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog index 6badc59..74dda97 100644 --- a/gcc/objc/ChangeLog +++ b/gcc/objc/ChangeLog @@ -1,3 +1,8 @@ +2016-09-27 Jakub Jelinek <jakub@redhat.com> + + * objc-act.c (continue_class): Remove break after return. + (objc_maybe_printable_name): Likewise. + 2016-08-12 Marek Polacek <polacek@redhat.com> PR c/7652 diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 44f01d2..374f104 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -7054,7 +7054,6 @@ continue_class (tree klass) #endif /* OBJCPLUS */ return get_class_ivars (implementation_template, true); - break; } case CLASS_INTERFACE_TYPE: { @@ -7070,7 +7069,6 @@ continue_class (tree klass) pop_lang_context (); #endif /* OBJCPLUS */ return NULL_TREE; - break; } default: return error_mark_node; @@ -9279,7 +9277,6 @@ objc_maybe_printable_name (tree decl, int v ATTRIBUTE_UNUSED) { case FUNCTION_DECL: return objc_demangle (IDENTIFIER_POINTER (DECL_NAME (decl))); - break; /* The following happens when we are printing a deprecation warning for a method. The warn_deprecation() will end up @@ -9294,17 +9291,14 @@ objc_maybe_printable_name (tree decl, int v ATTRIBUTE_UNUSED) case INSTANCE_METHOD_DECL: case CLASS_METHOD_DECL: return IDENTIFIER_POINTER (DECL_NAME (decl)); - break; /* This happens when printing a deprecation warning for a property. We may want to consider some sort of pretty printing (eg, include the class name where it was declared ?). */ case PROPERTY_DECL: return IDENTIFIER_POINTER (PROPERTY_NAME (decl)); - break; default: return NULL; - break; } } |