boringssl/crypto/test
Brian Smith dc6c1b8381 Fix build when using Visual Studio 2015 Update 1.
Many of the compatibility issues are described at
https://msdn.microsoft.com/en-us/library/mt612856.aspx. The macros
that suppressed warnings on a per-function basis no longer work in
Update 1, so replace them with #pragmas. Update 1 warns when |size_t|
arguments to |printf| are casted, so stop doing that casting.
Unfortunately, this requires an ugly hack to continue working in
MSVC 2013 as MSVC 2013 doesn't support "%zu". Finally, Update 1 has new
warnings, some of which need to be suppressed.

---

Updated by davidben to give up on suppressing warnings in crypto/x509 and
crypto/x509v3 as those directories aren't changed much from upstream. In each
of these cases, upstream opted just blindly initialize the variable, so do the
same. Also switch C4265 to level 4, per Microsoft's recommendation and work
around a bug in limits.h that happens to get fixed by Google include order
style.

(limits.h is sensitive to whether corecrt.h, pulled in by stddef.h and some
other headers, is included before it. The reason it affected just one file is
we often put the file's header first, which means base.h is pulling in
stddef.h. Relying on this is ugly, but it's no worse than what everything else
is doing and this doesn't seem worth making something as tame as limits.h so
messy to use.)

Change-Id: I02d1f935356899f424d3525d03eca401bfa3e6cd
Reviewed-on: https://boringssl-review.googlesource.com/7480
Reviewed-by: David Benjamin <davidben@google.com>
2016-03-25 21:39:52 +00:00
..
CMakeLists.txt Remove BIO dependency from cmac_test. 2015-08-07 01:53:01 +00:00
file_test.cc Test different chunk sizes in cipher_test. 2016-02-24 18:12:57 +00:00
file_test.h Remove support for blocks in file_test.h. 2016-02-17 17:24:57 +00:00
malloc.cc Raise SIGTRAP rather than abort on failure. 2015-06-16 18:25:30 +00:00
scoped_types.h Add SPAKE2 over Ed25519. 2016-03-01 19:34:10 +00:00
test_util.cc Remove BIO dependency from cmac_test. 2015-08-07 01:53:01 +00:00
test_util.h Fix build when using Visual Studio 2015 Update 1. 2016-03-25 21:39:52 +00:00