Commit be136b5c by Nathan Sidwell Committed by Nathan Sidwell

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
parent 2efc367f
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> 2017-05-24 Martin Sebor <msebor@redhat.com>
PR c/80731 PR c/80731
......
...@@ -5866,8 +5866,8 @@ check_builtin_function_arguments (location_t loc, vec<location_t> arg_loc, ...@@ -5866,8 +5866,8 @@ check_builtin_function_arguments (location_t loc, vec<location_t> arg_loc,
int int
field_decl_cmp (const void *x_p, const void *y_p) field_decl_cmp (const void *x_p, const void *y_p)
{ {
const tree *const x = (const tree *const) x_p; const tree *const x = (const tree *) x_p;
const tree *const y = (const tree *const) y_p; const tree *const y = (const tree *) y_p;
if (DECL_NAME (*x) == DECL_NAME (*y)) if (DECL_NAME (*x) == DECL_NAME (*y))
/* A nontype is "greater" than a type. */ /* A nontype is "greater" than a type. */
...@@ -5892,8 +5892,8 @@ pointer operator in resort_data. */ ...@@ -5892,8 +5892,8 @@ pointer operator in resort_data. */
static int static int
resort_field_decl_cmp (const void *x_p, const void *y_p) resort_field_decl_cmp (const void *x_p, const void *y_p)
{ {
const tree *const x = (const tree *const) x_p; const tree *const x = (const tree *) x_p;
const tree *const y = (const tree *const) y_p; const tree *const y = (const tree *) y_p;
if (DECL_NAME (*x) == DECL_NAME (*y)) if (DECL_NAME (*x) == DECL_NAME (*y))
/* A nontype is "greater" than a type. */ /* A nontype is "greater" than a type. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment