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

Unified Diff: native_client_sdk/src/examples/file_histogram/file_histogram.cc

Issue 11147004: use CXX compiler for c++ files (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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: native_client_sdk/src/examples/file_histogram/file_histogram.cc
diff --git a/native_client_sdk/src/examples/file_histogram/file_histogram.cc b/native_client_sdk/src/examples/file_histogram/file_histogram.cc
index 4909a9c666708cc2b1e856af0da11c5fc9eb8837..9a7a7848d606054ea8e25517d324d5252cb82476 100644
--- a/native_client_sdk/src/examples/file_histogram/file_histogram.cc
+++ b/native_client_sdk/src/examples/file_histogram/file_histogram.cc
@@ -42,6 +42,13 @@
#undef PostMessage
#endif
+#ifdef _MSC_VER
binji 2012/10/12 23:05:59 let's be consistent about whether we use _MSC_VER
+// Allow 'this' in initializer list
+#pragma warning(disable : 4355)
+// Disable warning about behaviour of array initialization.
+#pragma warning(disable : 4351)
+#endif
+
namespace {
const uint32_t kBlue = 0xff4040ffu;
« no previous file with comments | « native_client_sdk/src/build_tools/make_rules.py ('k') | native_client_sdk/src/examples/geturl/geturl_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698