Discussion:
Valgrind: r16292 - /trunk/coregrind/m_syswrap/syswrap-x86-solaris.c
Add Reply
s***@valgrind.org
2017-04-03 12:27:00 UTC
Reply
Permalink
Raw Message
Author: iraisr
Date: Mon Apr 3 13:27:00 2017
New Revision: 16292

Log:
Follow up to SVN r16291.
Fix compilation warnings in coregrind/m_syswrap/syswrap-x86-solaris.c.

Modified:
trunk/coregrind/m_syswrap/syswrap-x86-solaris.c

Modified: trunk/coregrind/m_syswrap/syswrap-x86-solaris.c
==============================================================================
--- trunk/coregrind/m_syswrap/syswrap-x86-solaris.c (original)
+++ trunk/coregrind/m_syswrap/syswrap-x86-solaris.c Mon Apr 3 13:27:00 2017
@@ -576,7 +576,7 @@
{
if (!vex->guest_GDT)
return;
- VG_(free)((void*)vex->guest_GDT);
+ VG_(free)((void *) (HWord) vex->guest_GDT);
vex->guest_GDT = 0;
}

@@ -586,7 +586,8 @@
{
ThreadState *tst = VG_(get_ThreadState)(tid);
Addr base = tst->os_state.thrptr;
- VexGuestX86SegDescr *gdt = (VexGuestX86SegDescr*)tst->arch.vex.guest_GDT;
+ VexGuestX86SegDescr *gdt
+ = (VexGuestX86SegDescr *) (HWord) tst->arch.vex.guest_GDT;
VexGuestX86SegDescr desc;

vg_assert(gdt);

Loading...