VirtualBox

Ignore:
Timestamp:
Aug 5, 2018 2:18:50 PM (6 years ago)
Author:
vboxsync
Message:

VBoxDTrace: GCC 8.2.0 fixes

Location:
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_consume.c

    r66829 r73510  
    22682268
    22692269        if (pf == NULL)
    2270                 pf = (dtrace_consume_probe_f *)dt_nullprobe;
     2270                pf = (dtrace_consume_probe_f *)(uintptr_t)dt_nullprobe;
    22712271
    22722272        if (rf == NULL)
    2273                 rf = (dtrace_consume_rec_f *)dt_nullrec;
     2273                rf = (dtrace_consume_rec_f *)(uintptr_t)dt_nullrec;
    22742274
    22752275        if (buf->dtbd_data == NULL) {
  • trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/uts/common/dtrace/dtrace.c

    r69044 r73510  
    317317        (void (*)(void *, const dtrace_probedesc_t *))dtrace_nullop,
    318318        (void (*)(void *, struct modctl *))dtrace_nullop,
    319         (int (*)(void *, dtrace_id_t, void *))dtrace_enable_nullop,
     319        (int (*)(void *, dtrace_id_t, void *))(uintptr_t)dtrace_enable_nullop,
    320320        (void (*)(void *, dtrace_id_t, void *))dtrace_nullop,
    321321        (void (*)(void *, dtrace_id_t, void *))dtrace_nullop,
     
    73837383
    73847384        if (old->dtpv_pops.dtps_enable ==
    7385             (int (*)(void *, dtrace_id_t, void *))dtrace_enable_nullop) {
     7385            (int (*)(void *, dtrace_id_t, void *))(uintptr_t)dtrace_enable_nullop) {
    73867386                /*
    73877387                 * If DTrace itself is the provider, we're called with locks
     
    75337533
    75347534        ASSERT(pvp->dtpv_pops.dtps_enable !=
    7535             (int (*)(void *, dtrace_id_t, void *))dtrace_enable_nullop);
     7535            (int (*)(void *, dtrace_id_t, void *))(uintptr_t)dtrace_enable_nullop);
    75367536
    75377537        mutex_enter(&dtrace_provider_lock);
     
    75747574         */
    75757575        ASSERT(prov->dtpv_pops.dtps_enable !=
    7576             (int (*)(void *, dtrace_id_t, void *))dtrace_enable_nullop);
     7576            (int (*)(void *, dtrace_id_t, void *))(uintptr_t)dtrace_enable_nullop);
    75777577
    75787578        mutex_enter(&dtrace_provider_lock);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette