Changeset 96881 in webkit for trunk/Source/JavaScriptCore/wtf
- Timestamp:
- Oct 6, 2011, 5:34:05 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/wtf/StdLibExtras.h
r96880 r96881 45 45 46 46 // Use this macro to declare and define a debug-only global variable that may have a 47 // non-trivial constructor and destructor. 47 // non-trivial constructor and destructor. When building with clang, this will suppress 48 // warnings about global constructors and exit-time destructors. 48 49 #ifndef NDEBUG 50 #if COMPILER(CLANG) 51 #define DEFINE_DEBUG_ONLY_GLOBAL(type, name, arguments) \ 52 _Pragma("clang diagnostic push") \ 53 _Pragma("clang diagnostic ignored \"-Wglobal-constructors\"") \ 54 _Pragma("clang diagnostic ignored \"-Wexit-time-destructors\"") \ 55 static type name arguments; \ 56 _Pragma("clang diagnostic pop") 57 #else 49 58 #define DEFINE_DEBUG_ONLY_GLOBAL(type, name, arguments) \ 50 59 static type name arguments; 60 #endif // COMPILER(CLANG) 51 61 #else 52 62 #define DEFINE_DEBUG_ONLY_GLOBAL(type, name, arguments)
Note:
See TracChangeset
for help on using the changeset viewer.