diff mbox

Implement -Wswitch-fallthrough: objc

Message ID 20160711195842.GB13963@redhat.com
State New
Headers show

Commit Message

Marek Polacek July 11, 2016, 7:58 p.m. UTC
2016-07-11  Marek Polacek  <polacek@redhat.com>

	PR c/7652
	* objc-encoding.c (encode_type): Add gcc_fallthrough.
diff mbox

Patch

diff --git gcc/gcc/objc/objc-encoding.c gcc/gcc/objc/objc-encoding.c
index 41ac6a4..cc64e1b 100644
--- gcc/gcc/objc/objc-encoding.c
+++ gcc/gcc/objc/objc-encoding.c
@@ -622,6 +622,7 @@  encode_type (tree type, int curtype, int format)
 	}
       /* Else, they are encoded exactly like the integer type that is
 	 used by the compiler to store them.  */
+      gcc_fallthrough ();
     case INTEGER_TYPE:
       {
 	char c;