diff options
author | Brian Smith <brian@briansmith.org> | 2015-07-22 04:46:20 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-08-06 00:26:34 +0300 |
commit | 906e2993a8cc74b09fd03d01ff2a6d6d02db96d2 (patch) | |
tree | 073408dd3cf6dcb7784c99eadd4df92f904b8807 /crypto/test | |
parent | d0e1f1ca85982f6c9f4078b67d3b8738870c7cd2 (diff) |
Fix Windows build.
When using CMake to build with MSVC, MSVC complains about unreachable
code in the <xtree> header. This incantation silences that.
Change-Id: I5fc5305dc816a009a4c59501b212fd11e290637d
Reviewed-on: https://boringssl-review.googlesource.com/5552
Reviewed-by: David Benjamin <davidben@chromium.org>
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/test')
-rw-r--r-- | crypto/test/file_test.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/test/file_test.h b/crypto/test/file_test.h index 7303d8ab..24651ab8 100644 --- a/crypto/test/file_test.h +++ b/crypto/test/file_test.h @@ -18,11 +18,19 @@ #include <stdint.h> #include <stdio.h> +#if defined(_MSC_VER) +#pragma warning(push) +#pragma warning(disable: 4702) +#endif + #include <string> #include <map> #include <set> #include <vector> +#if defined(_MSC_VER) +#pragma warning(pop) +#endif // File-based test framework. // |