VirtualBox

儲存庫 vbox 的更動 62425


忽略:
時間撮記:
2016-7-22 上午11:28:52 (8 年 以前)
作者:
vboxsync
訊息:

Devices/RC: MSC level 4 warnings.

位置:
trunk/src/VBox/Devices
檔案:
修改 5 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp

    r60042 r62425  
    849849            rc = VINF_IOM_R3_IOPORT_READ;
    850850            break;
    851 #elif defined(VMSVGA_USE_EMT_HALT_CODE)
     851#else
     852# if defined(VMSVGA_USE_EMT_HALT_CODE)
    852853            /* The guest is basically doing a HLT via the device here, but with
    853854               a special wake up condition on FIFO completion. */
     
    862863            ASMAtomicDecU32(&pSVGAState->cBusyDelayedEmts);
    863864            VMCPUSET_ATOMIC_DEL(&pSVGAState->BusyDelayedEmts, idCpu);
    864 #else
     865# else
    865866
    866867            /* Delay the EMT a bit so the FIFO and others can get some work done.
     
    891892            }
    892893            STAM_REL_PROFILE_STOP(&pSVGAState->StatBusyDelayEmts, EmtDelay);
     894# endif
     895            *pu32 = pThis->svga.fBusy != 0;
    893896#endif
    894             *pu32 = pThis->svga.fBusy != 0;
    895897        }
    896898        else
     
    14901492    {
    14911493        Log(("Ignoring non-dword read at %x cb=%d\n", Port, cb));
    1492         *pu32 = ~0;
     1494        *pu32 = UINT32_MAX;
    14931495        return VINF_SUCCESS;
    14941496    }
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r62032 r62425  
    364364}
    365365
     366#ifdef _MSC_VER
     367# pragma warning(push)
     368# pragma warning(disable:4310 4245) /* Buggy warnings: cast truncates constant value; conversion from 'int' to 'const uint8_t', signed/unsigned mismatch */
     369#endif
     370
    366371/* force some bits to zero */
    367372static const uint8_t sr_mask[8] = {
     
    394399    (uint8_t)~0xff, /* 0x0f */
    395400};
     401
     402#ifdef _MSC_VER
     403# pragma warning(pop)
     404#endif
    396405
    397406#define cbswap_32(__x) \
     
    36213630{
    36223631    static int lastWasNotNewline = 0;  /* We are only called in a single-threaded way */
    3623     PVGASTATE pThis = PDMINS_2_DATA(pDevIns, PVGASTATE);
    36243632    NOREF(pvUser);
    36253633    Assert(PDMCritSectIsOwner(pDevIns->CTX_SUFF(pCritSectRo)));
  • trunk/src/VBox/Devices/Network/DevE1000.cpp

    r61691 r62425  
    47214721{
    47224722    int rc = VINF_SUCCESS;
    4723     uint32_t cbVTag = 0;
    47244723
    47254724    e1kPrintTDesc(pThis, pDesc, "vvv");
  • trunk/src/VBox/Devices/Network/DevPCNet.cpp

    r60962 r62425  
    18591859                if (fAddFCS)
    18601860                {
    1861                     uint32_t fcs = ~0;
     1861                    uint32_t fcs = UINT32_MAX;
    18621862                    uint8_t *p = src;
    18631863
  • trunk/src/VBox/Devices/VMMDev/VMMDevTesting.cpp

    r62150 r62425  
    144144                    break;
    145145                case 2:
    146                     *(uint16_t *)pv = (uint16_t)VMMDEV_TESTING_NOP_RET;
     146                    *(uint16_t *)pv = RT_LO_U16(VMMDEV_TESTING_NOP_RET);
    147147                    break;
    148148                case 1:
    149                     *(uint8_t *)pv  = (uint8_t)VMMDEV_TESTING_NOP_RET;
     149                    *(uint8_t *)pv  = RT_LO_U8(VMMDEV_TESTING_NOP_RET);
    150150                    break;
    151151                default:
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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