+2017-05-24 Nathan Sidwell <nathan@acm.org>
+
+ * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
+ const casts to avoid warning.
+
2017-05-24 Martin Sebor <msebor@redhat.com>
PR c/80731
int
field_decl_cmp (const void *x_p, const void *y_p)
{
- const tree *const x = (const tree *const) x_p;
- const tree *const y = (const tree *const) y_p;
+ const tree *const x = (const tree *) x_p;
+ const tree *const y = (const tree *) y_p;
if (DECL_NAME (*x) == DECL_NAME (*y))
/* A nontype is "greater" than a type. */
static int
resort_field_decl_cmp (const void *x_p, const void *y_p)
{
- const tree *const x = (const tree *const) x_p;
- const tree *const y = (const tree *const) y_p;
+ const tree *const x = (const tree *) x_p;
+ const tree *const y = (const tree *) y_p;
if (DECL_NAME (*x) == DECL_NAME (*y))
/* A nontype is "greater" than a type. */