On Jul 27, 2016, at 9:52 AM, Marek Polacek <pola...@redhat.com> wrote:
> 
> This is what the new warning pointed out.  I think all these are bugs.
> 
> --- 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;

I disagree that's the best fix.  Better would be to uncomment out the 
playgcprog calls, and #if 0 the entire contents of the function.

Reply via email to