This patch fixes implicit-fallthrough warnings in sunrpc/xdr.c when
building with -Wextra. A fall-through comment is added in three
places; in two other places, an existing comment is reworded so it
matches the default patterns used by -Wimplicit-fallthrough.
Tested for x86_64.
* sunrpc/xdr.c (xdr_int): Add fall-through comment.
(xdr_u_int): Likewise.
(xdr_enum): Likewise.
(xdr_bytes): Reword fall-through comment.
(xdr_string): Likewise.
+2019-02-14 Joseph Myers <joseph@codesourcery.com>
+
+ * sunrpc/xdr.c (xdr_int): Add fall-through comment.
+ (xdr_u_int): Likewise.
+ (xdr_enum): Likewise.
+ (xdr_bytes): Reword fall-through comment.
+ (xdr_string): Likewise.
+
2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
[BZ #2421]
return FALSE;
}
*ip = (int) l;
+ /* Fall through. */
case XDR_FREE:
return TRUE;
}
return FALSE;
}
*up = (u_int) (u_long) l;
+ /* Fall through. */
case XDR_FREE:
return TRUE;
}
return FALSE;
}
*ep = l;
+ /* Fall through. */
case XDR_FREE:
return TRUE;
(void) __fxprintf (NULL, "%s: %s", __func__, _("out of memory\n"));
return FALSE;
}
- /* fall into ... */
+ /* Fall through. */
case XDR_ENCODE:
return xdr_opaque (xdrs, sp, nodesize);
return FALSE;
}
sp[size] = 0;
- /* fall into ... */
+ /* Fall through. */
case XDR_ENCODE:
return xdr_opaque (xdrs, sp, size);