VirtualBox

Changeset 63435 in vbox for trunk


Ignore:
Timestamp:
Aug 14, 2016 9:56:30 AM (8 years ago)
Author:
vboxsync
Message:

compile fixes on Ubuntu

Location:
trunk/src/VBox
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxmouse/vboxmouse.c

    r63222 r63435  
    7171    /* Read a byte from the device to acknowledge the event */
    7272    char c;
    73     (void) read(pInfo->fd, &c, 1);
     73    int res = read(pInfo->fd, &c, 1);
     74    NOREF(res);
    7475    /* The first test here is a workaround for an apparent bug in Xorg Server 1.5 */
    7576    if (
  • trunk/src/VBox/Devices/PC/DevPit-i8254.cpp

    r62890 r63435  
    920920                {
    921921                    case PIT_SPEAKER_EMU_CONSOLE:
     922                    {
    922923                        int res;
    923924                        res = ioctl(pThis->hHostSpeaker, KIOCSOUND, pChan->count);
     
    928929                        }
    929930                        break;
     931                    }
    930932                    case PIT_SPEAKER_EMU_EVDEV:
     933                    {
    931934                        struct input_event e;
    932935                        e.type = EV_SND;
    933936                        e.code = SND_TONE;
    934937                        e.value = PIT_FREQ / pChan->count;
    935                         write(pThis->hHostSpeaker, &e, sizeof(struct input_event));
     938                        int res = write(pThis->hHostSpeaker, &e, sizeof(struct input_event));
     939                        NOREF(res);
    936940                        break;
     941                    }
    937942                    case PIT_SPEAKER_EMU_TTY:
    938                         write(pThis->hHostSpeaker, "\a", 1);
     943                    {
     944                        int res = write(pThis->hHostSpeaker, "\a", 1);
     945                        NOREF(res);
    939946                        break;
     947                    }
    940948                    case PIT_SPEAKER_EMU_NONE:
    941949                        break;
     
    961969                        break;
    962970                    case PIT_SPEAKER_EMU_EVDEV:
     971                    {
    963972                        struct input_event e;
    964973                        e.type = EV_SND;
    965974                        e.code = SND_TONE;
    966975                        e.value = 0;
    967                         write(pThis->hHostSpeaker, &e, sizeof(struct input_event));
     976                        int res = write(pThis->hHostSpeaker, &e, sizeof(struct input_event));
     977                        NOREF(res);
    968978                        break;
     979                    }
    969980                    case PIT_SPEAKER_EMU_TTY:
    970981                        break;
  • trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_consume.c

    r63129 r63435  
    17271727
    17281728                                case DT_ACT_FTRUNCATE:
     1729                                {
    17291730                                        if (fp == NULL)
    17301731                                                continue;
    17311732
    17321733                                        (void) fflush(fp);
    1733                                         (void) ftruncate(fileno(fp), 0);
     1734                                        int res = ftruncate(fileno(fp), 0);
     1735                                        NOREF(res);
    17341736                                        (void) fseeko(fp, 0, SEEK_SET);
    17351737                                        continue;
    1736 
     1738                                }
    17371739                                case DT_ACT_NORMALIZE:
    17381740                                        if (i == epd->dtepd_nrecs - 1)
  • trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_options.c

    r63207 r63435  
    109109#endif
    110110
    111         (void) write(STDERR_FILENO, msg, sizeof (msg) - 1);
     111        int res = write(STDERR_FILENO, msg, sizeof (msg) - 1);
     112        NOREF(res);
    112113
    113114#ifndef _MSC_VER
  • trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_printf.c

    r63369 r63435  
    16061606
    16071607                if (width != 0)
    1608                         f += snprintf(f, sizeof (format), "%d", ABS(width));
     1608                        f += snprintf(f, sizeof (format) - (f - format), "%d", ABS(width));
    16091609
    16101610                if (prec > 0)
    1611                         f += snprintf(f, sizeof (format), ".%d", prec);
     1611                        f += snprintf(f, sizeof (format) - (f - format), ".%d", prec);
    16121612
    16131613                (void) strcpy(f, pfd->pfd_fmt);
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