Commit c6d40741 by Richard Kenner

(field_decl_cmp): Use `const void *' arguments.

From-SVN: r13130
parent 511806bc
...@@ -423,7 +423,7 @@ static tree lookup_tag_reverse PROTO((tree)); ...@@ -423,7 +423,7 @@ static tree lookup_tag_reverse PROTO((tree));
static tree grokdeclarator PROTO((tree, tree, enum decl_context, static tree grokdeclarator PROTO((tree, tree, enum decl_context,
int)); int));
static tree grokparms PROTO((tree, int)); static tree grokparms PROTO((tree, int));
static int field_decl_cmp PROTO((tree *, tree *)); static int field_decl_cmp PROTO((const GENERIC_PTR, const GENERIC_PTR));
static void layout_array_type PROTO((tree)); static void layout_array_type PROTO((tree));
/* C-specific option variables. */ /* C-specific option variables. */
...@@ -5475,9 +5475,12 @@ grokfield (filename, line, declarator, declspecs, width) ...@@ -5475,9 +5475,12 @@ grokfield (filename, line, declarator, declspecs, width)
/* Function to help qsort sort FIELD_DECLs by name order. */ /* Function to help qsort sort FIELD_DECLs by name order. */
static int static int
field_decl_cmp (x, y) field_decl_cmp (xp, yp)
tree *x, *y; const GENERIC_PTR xp;
const GENERIC_PTR yp;
{ {
tree *x = (tree *)xp, *y = (tree *)yp;
if (DECL_NAME (*x) == DECL_NAME (*y)) if (DECL_NAME (*x) == DECL_NAME (*y))
return 0; return 0;
if (DECL_NAME (*x) == NULL) if (DECL_NAME (*x) == NULL)
......
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