Ignore:
Timestamp:
Jun 10, 2021, 10:18:06 AM (4 years ago)
Author:
[email protected]
Message:

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:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/config.h

    r241929 r278711  
    11/*
    2  * Copyright (C) 2006-2019 Apple Inc. All rights reserved.
     2 * Copyright (C) 2006-2021 Apple Inc. All rights reserved.
    33 * Copyright (C) 2006 Samuel Weinig <[email protected]>
    44 *
     
    4040
    4141#include <wtf/DisallowCType.h>
     42
     43/* Disabling warning C4206: nonstandard extension used: translation unit is empty.
     44   By design, we rely on #define flags to make some translation units empty.
     45   Make sure this warning does not turn into an error.
     46*/
     47#if COMPILER(MSVC)
     48#pragma warning(disable:4206)
     49#endif
Note: See TracChangeset for help on using the changeset viewer.