Fix fall-through warnings in sunrpc/xdr.c

Florian Weimer fw@deneb.enyo.de
Thu Feb 14 19:06:00 GMT 2019


* Joseph Myers:

> diff --git a/sunrpc/xdr.c b/sunrpc/xdr.c
> index 8b0b91995b..b5fb7455e2 100644
> --- a/sunrpc/xdr.c
> +++ b/sunrpc/xdr.c
> @@ -113,6 +113,7 @@ xdr_int (XDR *xdrs, int *ip)
>  	  return FALSE;
>  	}
>        *ip = (int) l;
> +      /* Fall through.  */
>      case XDR_FREE:
>        return TRUE;

I would duplicate the return statement for those cases.  But no strong
preference.  Patch looks okay as-is.



More information about the Libc-alpha mailing list