[mono/mono] e6b5336b: Add a couple of casts to scan_thread_data () to shut GCC up.
| Newsgroups | gmane.comp.gnome.mono.patches |
|---|---|
| Message-ID | <00000141dcdbe984-075b61f9-0e32-470d-a777-96c4e1a8c1df-000000@email.amazonses.com> |
Branch: refs/heads/master
Home: https://github.com/mono/mono
Compare: https://github.com/mono/mono/compare/cd474dc5525a...e6b5336bb9d1
Commit: e6b5336bb9d1e7eabd6430358446630adfc38c19
Author: Alex Rønne Petersen <[email protected]>
Date: 2013-10-21 21:10:15 GMT
URL: https://github.com/mono/mono/commit/e6b5336bb9d1e7eabd6430358446630adfc38c19
Add a couple of casts to scan_thread_data () to shut GCC up.
This would result in the following warnings on e.g. PowerPC:
sgen-gc.c: In function 'scan_thread_data':
sgen-gc.c:4045:6: warning: passing argument 1 of 'conservatively_pin_objects_from' from incompatible pointer type [enabled by default]
sgen-gc.c:1467:1: note: expected 'void **' but argument is of type 'void * (*)[32]'
sgen-gc.c:4045:6: warning: passing argument 2 of 'conservatively_pin_objects_from' from incompatible pointer type [enabled by default]
sgen-gc.c:1467:1: note: expected 'void **' but argument is of type 'void * (*)[32]'
Changed paths:
M mono/metadata/sgen-gc.c
Modified: mono/metadata/sgen-gc.c
===================================================================
@@ -4043,7 +4043,7 @@ struct _EphemeronLinkNode {
conservatively_pin_objects_from ((void**)&info->ctx, (void**)&info->ctx + ARCH_NUM_REGS,
start_nursery, end_nursery, PIN_TYPE_STACK);
#else
- conservatively_pin_objects_from (&info->regs, &info->regs + ARCH_NUM_REGS,
+ conservatively_pin_objects_from ((void**)&info->regs, (void**)&info->regs + ARCH_NUM_REGS,
start_nursery, end_nursery, PIN_TYPE_STACK);
#endif
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches