Title: [126515] trunk/Source/WTF
- Revision
- 126515
- Author
- [email protected]
- Date
- 2012-08-23 17:40:33 -0700 (Thu, 23 Aug 2012)
Log Message
Build fix for old, old versions of Clang.
* wtf/FastMalloc.cpp:
(WTF): Rejigger things so that they parse correctly if __has_warning isn't defined.
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (126514 => 126515)
--- trunk/Source/WTF/ChangeLog 2012-08-24 00:39:42 UTC (rev 126514)
+++ trunk/Source/WTF/ChangeLog 2012-08-24 00:40:33 UTC (rev 126515)
@@ -1,3 +1,10 @@
+2012-08-23 Mark Rowe <[email protected]>
+
+ Build fix for old, old versions of Clang.
+
+ * wtf/FastMalloc.cpp:
+ (WTF): Rejigger things so that they parse correctly if __has_warning isn't defined.
+
2012-08-23 Emil A Eklund <[email protected]>
Add saturation arithmetic support to FractionalLayoutUnit
Modified: trunk/Source/WTF/wtf/FastMalloc.cpp (126514 => 126515)
--- trunk/Source/WTF/wtf/FastMalloc.cpp 2012-08-24 00:39:42 UTC (rev 126514)
+++ trunk/Source/WTF/wtf/FastMalloc.cpp 2012-08-24 00:40:33 UTC (rev 126515)
@@ -2469,9 +2469,9 @@
int32_t cache_size_;
};
-#if COMPILER(CLANG)
+#if COMPILER(CLANG) && defined(__has_warning)
#pragma clang diagnostic push
-#if defined(__has_warning) && __has_warning("-Wunused-private-field")
+#if __has_warning("-Wunused-private-field")
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#endif
@@ -2482,7 +2482,7 @@
char pad_[(64 - (sizeof(TCMalloc_Central_FreeList) % 64)) % 64];
};
-#if COMPILER(CLANG)
+#if COMPILER(CLANG) && defined(__has_warning)
#pragma clang diagnostic pop
#endif
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes