aboutsummaryrefslogtreecommitdiff
path: root/gcc/c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2016-09-01 14:59:50 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2016-09-01 14:59:50 +0000
commit295844f68760cd2c8d38e5cd42ba0f81b55cb65b (patch)
treec6953867918ca0a6a2b88c76240d748598ee1ef1 /gcc/c
parent1ca94f3674693ee3fa656a2f8c560f3bb8aa4a6e (diff)
downloadgcc-295844f68760cd2c8d38e5cd42ba0f81b55cb65b.zip
gcc-295844f68760cd2c8d38e5cd42ba0f81b55cb65b.tar.gz
gcc-295844f68760cd2c8d38e5cd42ba0f81b55cb65b.tar.bz2
re PR c/7652 (-Wswitch-break : Warn if a switch case falls through)
PR c/7652 gcc/c-family/ * c-common.c (resolve_overloaded_builtin): Fix formatting. Add FALLTHRU comments. gcc/c/ * c-typeck.c (composite_type): Add FALLTHRU comment. gcc/gcc/cp/ * error.c (dump_type): Fix falls through comment. (dump_decl): Likewise. (dump_expr): Likewise. From-SVN: r239939
Diffstat (limited to 'gcc/c')
-rw-r--r--gcc/c/ChangeLog5
-rw-r--r--gcc/c/c-typeck.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog
index 3ac6648..6b00f9a 100644
--- a/gcc/c/ChangeLog
+++ b/gcc/c/ChangeLog
@@ -1,3 +1,8 @@
+2016-09-01 Marek Polacek <polacek@redhat.com>
+
+ PR c/7652
+ * c-typeck.c (composite_type): Add FALLTHRU comment.
+
2016-08-31 David Malcolm <dmalcolm@redhat.com>
* c-parser.c (c_parser_declaration_or_fndef): Add trailing space
diff --git a/gcc/c/c-typeck.c b/gcc/c/c-typeck.c
index 5194027..fc7a71e 100644
--- a/gcc/c/c-typeck.c
+++ b/gcc/c/c-typeck.c
@@ -605,8 +605,8 @@ composite_type (tree t1, tree t2)
t1 = build_function_type (valtype, newargs);
t1 = qualify_type (t1, t2);
- /* ... falls through ... */
}
+ /* FALLTHRU */
default:
return build_type_attribute_variant (t1, attributes);