VirtualBox

Changeset 33535 in vbox for trunk/include


Ignore:
Timestamp:
Oct 28, 2010 7:54:16 AM (14 years ago)
Author:
vboxsync
Message:

fortify does not like builtin_expect()

File:
1 edited

Legend:

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

    r33340 r33535  
    955955 */
    956956#if defined(__GNUC__)
    957 # if __GNUC__ >= 3
     957# if __GNUC__ >= 3 && !defined(FORTIFY_RUNNING)
    958958#  define RT_LIKELY(expr)       __builtin_expect(!!(expr), 1)
    959959#  define RT_UNLIKELY(expr)     __builtin_expect(!!(expr), 0)
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