VirtualBox

Changeset 33535 in vbox for trunk/src/libs/xpcom18a4/xpcom


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/src/libs/xpcom18a4/xpcom/base/nscore.h

    r27471 r33535  
    458458 */
    459459
    460 #if defined(__GNUC__) && (__GNUC__ > 2)
     460#if defined(__GNUC__) && (__GNUC__ > 2) && !defined(FORTIFY_RUNNING)
    461461#define NS_LIKELY(x)    (__builtin_expect(!!(x), 1))
    462462#define NS_UNLIKELY(x)  (__builtin_expect(!!(x), 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