VirtualBox

Changeset 67268 in vbox for trunk/src


Ignore:
Timestamp:
Jun 6, 2017 11:54:32 AM (8 years ago)
Author:
vboxsync
Message:

bugref:8524: Additions/linux: play nicely with distribution-installed Additions
[PATCH 1/2] Additions: VboxVideo: Fix compiler warning when building Linux vboxvideo driver
This commit fixes the following compiler warning:

drivers/staging/vboxvideo/osindependent/Modesetting.c: In function ‘VBoxHGSMIGetModeHints’:
drivers/staging/vboxvideo/osindependent/Modesetting.c:346:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]

void *p = VBoxHGSMIBufferAlloc(pCtx, sizeof(VBVAQUERYMODEHINTS)
~

Signed-off-by: Hans de Goede <hdegoede@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp

    r66544 r67268  
    341341{
    342342    int rc;
     343    void *p;
     344
    343345    AssertPtr(paHints);
    344346    if (!VALID_PTR(paHints))
    345347        return VERR_INVALID_POINTER;
    346     void *p = VBoxHGSMIBufferAlloc(pCtx,   sizeof(VBVAQUERYMODEHINTS)
    347                                          + cScreens * sizeof(VBVAMODEHINT),
    348                                    HGSMI_CH_VBVA, VBVA_QUERY_MODE_HINTS);
     348
     349    p = VBoxHGSMIBufferAlloc(pCtx, sizeof(VBVAQUERYMODEHINTS)
     350                                       + cScreens * sizeof(VBVAMODEHINT),
     351                             HGSMI_CH_VBVA, VBVA_QUERY_MODE_HINTS);
    349352    if (!p)
    350353    {
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