Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(573)

Unified Diff: minidump/minidump_extensions.h

Issue 896663006: win: Resolve zero-length array errors on MSVC (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@minidump-comp
Patch Set: . Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: minidump/minidump_extensions.h
diff --git a/minidump/minidump_extensions.h b/minidump/minidump_extensions.h
index 2ec3403ad68794942b0943729016071e50ce7312..e73447314a1f49e77575530e1651658b304dbb3d 100644
--- a/minidump/minidump_extensions.h
+++ b/minidump/minidump_extensions.h
@@ -25,6 +25,15 @@
#include "util/misc/uuid.h"
#if defined(COMPILER_MSVC)
+// C4200 is "nonstandard extension used : zero-sized array in struct/union".
+// We would like to globally disable this warning, but unfortunately, the
+// compiler is buggy and only supports disabling it with a pragma, so we can't
+// disable it with other silly warnings in build/common.gypi. See:
+// https://connect.microsoft.com/VisualStudio/feedback/details/1114440
+#pragma warning(disable: 4200)
Mark Mentovai 2015/02/04 21:25:15 Can we undisable it at the end of this header and
scottmg 2015/02/05 01:33:26 Done.
+#endif // COMPILER_MSVC
+
+#if defined(COMPILER_MSVC)
#define PACKED
#pragma pack(push, 1)
#else

Powered by Google App Engine
This is Rietveld 408576698