File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,13 @@ class AsanThreadContext final : public ThreadContextBase {
56
56
// AsanThreadContext objects are never freed, so we need many of them.
57
57
COMPILER_CHECK (sizeof (AsanThreadContext) <= 256 );
58
58
59
+ #if defined(_MSC_VER) && !defined(__clang__)
60
+ // MSVC raises a warning about a nonstandard extension being used for the 0
61
+ // sized element in this array. Disable this for warn-as-error builds.
62
+ # pragma warning(push)
63
+ # pragma warning(disable : 4200)
64
+ #endif
65
+
59
66
// AsanThread are stored in TSD and destroyed when the thread dies.
60
67
class AsanThread {
61
68
public:
@@ -185,6 +192,10 @@ class AsanThread {
185
192
char start_data_[];
186
193
};
187
194
195
+ #if defined(_MSC_VER) && !defined(__clang__)
196
+ # pragma warning(pop)
197
+ #endif
198
+
188
199
// Returns a single instance of registry.
189
200
ThreadRegistry &asanThreadRegistry ();
190
201
ThreadArgRetval &asanThreadArgRetval ();
You can’t perform that action at this time.
0 commit comments