summaryrefslogtreecommitdiff
path: root/gcc/c-family
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2017-05-25 00:55:10 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2017-05-25 00:55:10 +0000
commit5570d275f0177d6c9781d84a1519d5be6f6f8edd (patch)
treed29e190afbd37fbe21481e583090151df95523ca /gcc/c-family
parentb16cb98e63c50a6910e521b754c73469cb956738 (diff)
downloadgcc-5570d275f0177d6c9781d84a1519d5be6f6f8edd.tar.gz
* c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
const casts to avoid warning. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@248443 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-family')
-rw-r--r--gcc/c-family/ChangeLog5
-rw-r--r--gcc/c-family/c-common.c8
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 <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 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<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. */