VirtualBox

Changeset 73502 in vbox for trunk/include


Ignore:
Timestamp:
Aug 5, 2018 12:40:50 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
124129
Message:

IPRT: GCC 8.2.0 fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/asm.h

    r71700 r73502  
    553553 * @param   Type    The type of *ppv, sans volatile.
    554554 */
    555 #ifdef __GNUC__
     555#ifdef __GNUC__ /* 8.2.0 requires -Wno-ignored-qualifiers */
    556556# define ASMAtomicXchgPtrT(ppv, pv, Type) \
    557557    __extension__ \
     
    732732DECLINLINE(bool) ASMAtomicCmpXchgS8(volatile int8_t RT_FAR *pi8, const int8_t i8New, const int8_t i8Old)
    733733{
    734     return ASMAtomicCmpXchgU8((volatile uint8_t RT_FAR *)pi8, (const uint8_t)i8New, (const uint8_t)i8Old);
     734    return ASMAtomicCmpXchgU8((volatile uint8_t RT_FAR *)pi8, (uint8_t)i8New, (uint8_t)i8Old);
    735735}
    736736
     
    750750DECLINLINE(bool) ASMAtomicCmpXchgBool(volatile bool RT_FAR *pf, const bool fNew, const bool fOld)
    751751{
    752     return ASMAtomicCmpXchgU8((volatile uint8_t RT_FAR *)pf, (const uint8_t)fNew, (const uint8_t)fOld);
     752    return ASMAtomicCmpXchgU8((volatile uint8_t RT_FAR *)pf, (uint8_t)fNew, (uint8_t)fOld);
    753753}
    754754
     
    20302030 * @param   Type    The type of *ppv, sans volatile.
    20312031 */
    2032 #ifdef __GNUC__
     2032#ifdef __GNUC__ /* 8.2.0 requires -Wno-ignored-qualifiers */
    20332033# define ASMAtomicReadPtrT(ppv, Type) \
    20342034    __extension__ \
     
    20722072 * @param   Type    The type of *ppv, sans volatile.
    20732073 */
    2074 #ifdef __GNUC__
     2074#ifdef __GNUC__ /* 8.2.0 requires -Wno-ignored-qualifiers */
    20752075# define ASMAtomicUoReadPtrT(ppv, Type) \
    20762076    __extension__ \
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