Skip to content

Commit aac78b6

Browse files
authored
Fix: MSVC warning 5050 was not really suppressed (#937)
The pragma should be put before the import, not after.
1 parent 63dde3e commit aac78b6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

include/cpp2util.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,14 @@
4545
// (but we'll have more full-C++20 compilers soon!)
4646
#ifdef _MSC_VER
4747
#include "intrin.h"
48+
// Suppress spurious MSVC modules warning
49+
#pragma warning(disable:5050)
4850
#endif
4951
import std.core;
5052
import std.filesystem;
5153
import std.memory;
5254
import std.regex;
5355
import std.threading;
54-
55-
// Suppress spurious MSVC modules warning
56-
#pragma warning(disable:5050)
5756
#endif
5857

5958
// Otherwise, as a fallback if 'import std;' was requested, or else

0 commit comments

Comments
 (0)