From be136b5c889ca5988c11c7bc5eaffb29ec6249b5 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Thu, 25 May 2017 00:55:10 +0000 Subject: [PATCH] c=common.c (field_decl_cmp, [...]): Adjust T const casts to avoid warning. * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T const casts to avoid warning. From-SVN: r248443 --- gcc/c-family/ChangeLog | 5 +++++ gcc/c-family/c-common.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 83c000baabd..c8fff24e375 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,8 @@ +2017-05-24 Nathan Sidwell + + * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T + const casts to avoid warning. + 2017-05-24 Martin Sebor PR c/80731 diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c index 708fbe51919..4395e51847c 100644 --- a/gcc/c-family/c-common.c +++ b/gcc/c-family/c-common.c @@ -5866,8 +5866,8 @@ check_builtin_function_arguments (location_t loc, vec arg_loc, 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. */ @@ -5892,8 +5892,8 @@ pointer operator in resort_data. */ 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. */ -- 2.30.2