diff options
author | mostang.com!davidm <mostang.com!davidm> | 2003-03-28 07:43:22 +0000 |
---|---|---|
committer | mostang.com!davidm <mostang.com!davidm> | 2003-03-28 07:43:22 +0000 |
commit | 5907edf94612dae462fe5feb9357b494b8ad40ae (patch) | |
tree | afb1201f7936470c6446846098952af54e28cad5 /tests/ia64-test-dyn1.c | |
parent | b838c72f9a2d80f0c6252b122eab3ce822b31604 (diff) | |
download | libunwind-5907edf94612dae462fe5feb9357b494b8ad40ae.tar.gz |
(main): Portability fix: cast return value from create_func() to proper function-type.
(Logical change 1.70)
Diffstat (limited to 'tests/ia64-test-dyn1.c')
-rw-r--r-- | tests/ia64-test-dyn1.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/ia64-test-dyn1.c b/tests/ia64-test-dyn1.c index fd17b7e0..cef47448 100644 --- a/tests/ia64-test-dyn1.c +++ b/tests/ia64-test-dyn1.c @@ -110,7 +110,8 @@ main (int argc, char **argv) if (argc != 1) verbose = 1; - add1 = create_func (&di0, "func_add1", func_add1, func_add1_end, NULL); + add1 = (long (*)(long)) + create_func (&di0, "func_add1", func_add1, func_add1_end, NULL); /* Describe the epilogue of func_add3: */ i = 0; @@ -180,9 +181,12 @@ main (int argc, char **argv) assert ((unsigned) i <= r->op_count); /* Create two functions which can share the region-list: */ - add3_0 = create_func (&di1, "func_add3/0", func_add3, func_add3_end, r_pro); - add3_1 = create_func (&di2, "func_add3/1", func_add3, func_add3_end, r_pro); - vframe = create_func (&di3, "func_vframe", func_vframe, func_vframe_end, r); + add3_0 = (long (*) (long)) + create_func (&di1, "func_add3/0", func_add3, func_add3_end, r_pro); + add3_1 = (long (*) (long, void *[])) + create_func (&di2, "func_add3/1", func_add3, func_add3_end, r_pro); + vframe = (long (*) (long)) + create_func (&di3, "func_vframe", func_vframe, func_vframe_end, r); _U_dyn_register (&di1); _U_dyn_register (&di2); |