This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix fall-through warnings in sunrpc/xdr.c


* 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]