VirtualBox

Changeset 63459 in vbox for trunk/src/VBox/Devices/USB/linux


Ignore:
Timestamp:
Aug 15, 2016 7:51:18 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
110106
Message:

gcc 6 compile fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/linux/USBProxyDevice-linux.cpp

    r63369 r63459  
    15041504            for (i = 0; i < pUrb->cIsocPkts; i++)
    15051505            {
     1506#if RT_GNUC_PREREQ(4, 6)
     1507# pragma GCC diagnostic push
     1508# pragma GCC diagnostic ignored "-Warray-bounds"
     1509#endif
    15061510                pUrbLnx->KUrb.iso_frame_desc[i].length = pUrb->aIsocPkts[i].cb;
    15071511                pUrbLnx->KUrb.iso_frame_desc[i].actual_length = 0;
    15081512                pUrbLnx->KUrb.iso_frame_desc[i].status = 0x7fff;
     1513#if RT_GNUC_PREREQ(4, 6)
     1514# pragma GCC diagnostic pop
     1515#endif
    15091516            }
    15101517            break;
     
    18231830                for (i = 0, off = 0; i < pUrb->cIsocPkts; i++)
    18241831                {
     1832#if RT_GNUC_PREREQ(4, 6)
     1833# pragma GCC diagnostic push
     1834# pragma GCC diagnostic ignored "-Warray-bounds"
     1835#endif
    18251836                    pUrb->aIsocPkts[i].enmStatus = vusbProxyLinuxStatusToVUsbStatus(pUrbLnx->KUrb.iso_frame_desc[i].status);
    18261837                    Assert(pUrb->aIsocPkts[i].off == off);
    18271838                    pUrb->aIsocPkts[i].cb = pUrbLnx->KUrb.iso_frame_desc[i].actual_length;
    18281839                    off += pUrbLnx->KUrb.iso_frame_desc[i].length;
     1840#if RT_GNUC_PREREQ(4, 6)
     1841# pragma GCC diagnostic pop
     1842#endif
    18291843                }
    18301844            }
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