VirtualBox

Changeset 63435 in vbox for trunk/src/VBox/Devices/PC


Ignore:
Timestamp:
Aug 14, 2016 9:56:30 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
110082
Message:

compile fixes on Ubuntu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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;
Note: See TracChangeset for help on using the changeset viewer.

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