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

Unified Diff: Samples/multimedia/directshow/baseclasses/wxutil.cpp

Issue 1524703006: WinSDK samples: Workaround warnings for Clang on Windows. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc/deps/third_party/winsdk_samples_v71@master
Patch Set: Created 5 years 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: Samples/multimedia/directshow/baseclasses/wxutil.cpp
diff --git a/Samples/multimedia/directshow/baseclasses/wxutil.cpp b/Samples/multimedia/directshow/baseclasses/wxutil.cpp
index 5bc97a9ae44ce4be4d34b84c8bac93f0e66d5203..a79153b170e85fdf1df189d3fd5add2165822de7 100644
--- a/Samples/multimedia/directshow/baseclasses/wxutil.cpp
+++ b/Samples/multimedia/directshow/baseclasses/wxutil.cpp
@@ -381,7 +381,7 @@ void * __stdcall memmoveInternal(void * dst, const void * src, size_t count)
{
void * ret = dst;
-#ifdef _X86_
+#if defined(_X86_) && !defined(__clang__)
if (dst <= src || (char *)dst >= ((char *)src + count)) {
/*

Powered by Google App Engine
This is Rietveld 408576698