VirtualBox

忽略:
時間撮記:
2016-7-29 下午10:31:28 (8 年 以前)
作者:
vboxsync
訊息:

IPRT/testcases: warnings

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Runtime/testcase/tstRTInlineAsm.cpp

    r62570 r62721  
    640640    CHECKVAL(*pu8, 0, "%#x");
    641641
    642     CHECKOP(ASMAtomicXchgU8(pu8, 0xff), 0, "%#x", uint8_t);
     642    CHECKOP(ASMAtomicXchgU8(pu8, UINT8_C(0xff)), 0, "%#x", uint8_t);
    643643    CHECKVAL(*pu8, 0xff, "%#x");
    644644
    645     CHECKOP(ASMAtomicXchgU8(pu8, 0x87), 0xffff, "%#x", uint8_t);
     645    CHECKOP(ASMAtomicXchgU8(pu8, UINT8_C(0x87)), UINT8_C(0xff), "%#x", uint8_t);
    646646    CHECKVAL(*pu8, 0x87, "%#x");
    647647}
     
    14341434                    pbBuf2[offEnd] = 0xff;
    14351435                }
     1436#ifdef _MSC_VER /* simple stupid compiler warnings */
     1437                else
     1438                    bSaved1 = bSaved2 = 0;
     1439#endif
    14361440
    14371441                uint8_t *pbRet = (uint8_t *)ASMMemFirstMismatchingU8(pbBuf1 + offStart, cb, bFiller1);
     
    16671671    u64Out = ASMByteSwapU64(u64In);
    16681672    CHECKVAL(u64Out, u64In, "%#018RX64");
    1669     u64In  = ~(uint64_t)0;
     1673    u64In  = UINT64_MAX;
    16701674    u64Out = ASMByteSwapU64(u64In);
    16711675    CHECKVAL(u64Out, u64In, "%#018RX64");
     
    16861690    u32Out = ASMByteSwapU32(u32In);
    16871691    CHECKVAL(u32Out, u32In, "%#010RX32");
    1688     u32In  = ~(uint32_t)0;
     1692    u32In  = UINT32_MAX;
    16891693    u32Out = ASMByteSwapU32(u32In);
    16901694    CHECKVAL(u32Out, u32In, "%#010RX32");
     
    17051709    u16Out = ASMByteSwapU16(u16In);
    17061710    CHECKVAL(u16Out, u16In, "%#06RX16");
    1707     u16In  = ~(uint16_t)0;
     1711    u16In  = UINT16_MAX;
    17081712    u16Out = ASMByteSwapU16(u16In);
    17091713    CHECKVAL(u16Out, u16In, "%#06RX16");
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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