VirtualBox

Changeset 63459 in vbox for trunk/src


Ignore:
Timestamp:
Aug 15, 2016 7:51:18 AM (8 years ago)
Author:
vboxsync
Message:

gcc 6 compile fixes

Location:
trunk/src/VBox
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/DevSmc.cpp

    r62885 r63459  
    13881388    /* Fend off unsupported versions. */
    13891389    if (   uVersion != SMC_SAVED_STATE_VERSION
     1390#if SMC_SAVED_STATE_VERSION != SMC_SAVED_STATE_VERSION_BAKA
    13901391        && uVersion != SMC_SAVED_STATE_VERSION_BAKA
     1392#endif
    13911393        && uVersion != SMC_SAVED_STATE_VERSION_BAKA + 1)
    13921394        return VERR_SSM_UNSUPPORTED_DATA_UNIT_VERSION;
  • trunk/src/VBox/Devices/Network/slirp/ip_icmp.c

    r63016 r63459  
    6464/* The message sent when emulating PING */
    6565/* Be nice and tell them it's just a psuedo-ping packet */
     66#if 0
    6667static const char icmp_ping_msg[] = "This is a psuedo-PING packet used by Slirp to emulate ICMP ECHO-REQUEST packets.\n";
     68#endif
    6769
    6870/* list of actions for icmp_error() on RX of an icmp message */
  • 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            }
  • trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_cc.c

    r62835 r63459  
    21672167                yybegin(YYS_CLAUSE);
    21682168
     2169        rv = NULL;
    21692170        if ((err = setjmp(yypcb->pcb_jmpbuf)) != 0)
    21702171                goto out;
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_program.c

    r63199 r63459  
    12851285        }
    12861286    }
    1287     else if (target == GL_VERTEX_PROGRAM_ARB || target == GL_VERTEX_PROGRAM_NV) {
     1287    else if (   target == GL_VERTEX_PROGRAM_ARB
     1288#if GL_VERTEX_PROGRAM_ARB != GL_VERTEX_PROGRAM_NV
     1289             || target == GL_VERTEX_PROGRAM_NV
     1290#endif
     1291            ) {
    12881292        prog = p->currentVertexProgram;
    12891293        if (index >= g->limits.maxVertexProgramLocalParams) {
     
    16391643        params[3] = p->fragmentParameters[index][3];
    16401644    }
    1641     else if (target == GL_VERTEX_PROGRAM_ARB || target == GL_VERTEX_PROGRAM_NV) {
     1645    else if (   target == GL_VERTEX_PROGRAM_ARB
     1646#if GL_VERTEX_PROGRAM_ARB != GL_VERTEX_PROGRAM_NV
     1647             || target == GL_VERTEX_PROGRAM_NV
     1648#endif
     1649             ) {
    16421650        if (index >= g->limits.maxVertexProgramEnvParams) {
    16431651            crStateError(__LINE__, __FILE__, GL_INVALID_VALUE,
     
    16941702        DIRTY(pb->fragmentEnvParameters, g->neg_bitid);
    16951703    }
    1696     else if (target == GL_VERTEX_PROGRAM_ARB || target == GL_VERTEX_PROGRAM_NV) {
     1704    else if (   target == GL_VERTEX_PROGRAM_ARB
     1705#if GL_VERTEX_PROGRAM_ARB != GL_VERTEX_PROGRAM_NV
     1706             || target == GL_VERTEX_PROGRAM_NV
     1707#endif
     1708             ) {
    16971709        if (index >= g->limits.maxVertexProgramEnvParams) {
    16981710            crStateError(__LINE__, __FILE__, GL_INVALID_VALUE,
  • trunk/src/VBox/Main/include/DisplayImpl.h

    r63244 r63459  
    528528
    529529/* helper function, code in DisplayResampleImage.cpp */
     530#if 0
    530531void gdImageCopyResampled(uint8_t *dst, uint8_t *src,
    531532                            int dstX, int dstY, int srcX, int srcY,
    532533                            int dstW, int dstH, int srcW, int srcH);
     534#endif
    533535
    534536void BitmapScale32(uint8_t *dst, int dstW, int dstH,
  • trunk/src/VBox/Main/src-all/DisplayResampleImage.cpp

    r62485 r63459  
    8282        (b))
    8383
     84#if 0 /* unused */
    8485void gdImageCopyResampled (uint8_t *dst,
    8586                      uint8_t *src,
     
    195196    }
    196197}
     198#endif
    197199
    198200/* Fast integer implementation for 32 bpp bitmap scaling.
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