diff options
author | Nathan Sidwell <nathan@acm.org> | 2017-05-25 00:55:10 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2017-05-25 00:55:10 +0000 |
commit | be136b5c889ca5988c11c7bc5eaffb29ec6249b5 (patch) | |
tree | d29e190afbd37fbe21481e583090151df95523ca | |
parent | 2efc367f256dbe4b503c22df0a590a841e2b39dd (diff) | |
download | gcc-be136b5c889ca5988c11c7bc5eaffb29ec6249b5.zip gcc-be136b5c889ca5988c11c7bc5eaffb29ec6249b5.tar.gz gcc-be136b5c889ca5988c11c7bc5eaffb29ec6249b5.tar.bz2 |
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
-rw-r--r-- | gcc/c-family/ChangeLog | 5 | ||||
-rw-r--r-- | 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 83c000b..c8fff24 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,8 @@ +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 diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c index 708fbe5..4395e51 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<location_t> 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. */ |