diff mbox

Implement -Wswitch-fallthrough: libgo

Message ID 20160711195701.GX13963@redhat.com
State New
Headers show

Commit Message

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

	PR c/7652
	* runtime/heapdump.c (dumpefacetypes): Add break.
diff mbox

Patch

diff --git gcc/libgo/runtime/heapdump.c gcc/libgo/runtime/heapdump.c
index d0cfb01..1ce8aa2 100644
--- gcc/libgo/runtime/heapdump.c
+++ gcc/libgo/runtime/heapdump.c
@@ -766,6 +766,7 @@  dumpefacetypes(void *obj __attribute__ ((unused)), uintptr size, const Type *typ
 		for(i = 0; i <= size - type->__size; i += type->__size)
 			//playgcprog(i, (uintptr*)type->gc + 1, dumpeface_callback, obj);
 		break;
+		break;
 	case TypeInfo_Chan:
 		if(type->__size == 0) // channels may have zero-sized objects in them
 			break;