Title: [278723] branches/safari-612.1.15.4-branch/Source/_javascript_Core
Revision
278723
Author
[email protected]
Date
2021-06-10 12:42:47 -0700 (Thu, 10 Jun 2021)

Log Message

Cherry-pick r278711. rdar://problem/79147214

    Another speculative build fix for Win32.
    https://bugs.webkit.org/show_bug.cgi?id=226880
    rdar://79124858

    Reviewed by Keith Miller.

    We're getting reports of "warning C4206: nonstandard extension used: translation
    unit is empty" turning into a build error on Win32 ports.  By design, we rely on
    #define flags to make some translation units empty.  Hence, we don't want this
    warning to turn into an error.

    * config.h:

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@278711 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-612.1.15.4-branch/Source/_javascript_Core/ChangeLog (278722 => 278723)


--- branches/safari-612.1.15.4-branch/Source/_javascript_Core/ChangeLog	2021-06-10 19:41:46 UTC (rev 278722)
+++ branches/safari-612.1.15.4-branch/Source/_javascript_Core/ChangeLog	2021-06-10 19:42:47 UTC (rev 278723)
@@ -1,3 +1,39 @@
+2021-06-10  Russell Epstein  <[email protected]>
+
+        Cherry-pick r278711. rdar://problem/79147214
+
+    Another speculative build fix for Win32.
+    https://bugs.webkit.org/show_bug.cgi?id=226880
+    rdar://79124858
+    
+    Reviewed by Keith Miller.
+    
+    We're getting reports of "warning C4206: nonstandard extension used: translation
+    unit is empty" turning into a build error on Win32 ports.  By design, we rely on
+    #define flags to make some translation units empty.  Hence, we don't want this
+    warning to turn into an error.
+    
+    * config.h:
+    
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@278711 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2021-06-10  Mark Lam  <[email protected]>
+
+            Another speculative build fix for Win32.
+            https://bugs.webkit.org/show_bug.cgi?id=226880
+            rdar://79124858
+
+            Reviewed by Keith Miller.
+
+            We're getting reports of "warning C4206: nonstandard extension used: translation
+            unit is empty" turning into a build error on Win32 ports.  By design, we rely on
+            #define flags to make some translation units empty.  Hence, we don't want this
+            warning to turn into an error.
+
+            * config.h:
+
 2021-06-09  Russell Epstein  <[email protected]>
 
         Cherry-pick r278672. rdar://problem/79111918

Modified: branches/safari-612.1.15.4-branch/Source/_javascript_Core/config.h (278722 => 278723)


--- branches/safari-612.1.15.4-branch/Source/_javascript_Core/config.h	2021-06-10 19:41:46 UTC (rev 278722)
+++ branches/safari-612.1.15.4-branch/Source/_javascript_Core/config.h	2021-06-10 19:42:47 UTC (rev 278723)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2006-2019 Apple Inc. All rights reserved.
+ * Copyright (C) 2006-2021 Apple Inc. All rights reserved.
  * Copyright (C) 2006 Samuel Weinig <[email protected]>
  *
  * This library is free software; you can redistribute it and/or
@@ -39,3 +39,11 @@
 #endif
 
 #include <wtf/DisallowCType.h>
+
+/* Disabling warning C4206: nonstandard extension used: translation unit is empty.
+   By design, we rely on #define flags to make some translation units empty.
+   Make sure this warning does not turn into an error.
+*/
+#if COMPILER(MSVC)
+#pragma warning(disable:4206)
+#endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to