Valgrind: r16292 - /trunk/coregrind/m_syswrap/syswrap-x86-solaris.c

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Valgrind: r16292 - /trunk/coregrind/m_syswrap/syswrap-x86-solaris.c

svn-2
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);


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Valgrind-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/valgrind-developers
Loading...