diff options
author | Gennadiy Civil <misterg@google.com> | 2018-04-06 14:15:00 (GMT) |
---|---|---|
committer | Gennadiy Civil <misterg@google.com> | 2018-04-06 14:15:00 (GMT) |
commit | 50c0bcd7e36374d6c3d0359c2160d8493e67527e (patch) | |
tree | cebd2caee101e3f1462c18619373a4b6a4379e04 /googlemock/include/gmock/internal/gmock-internal-utils.h | |
parent | b5c87fbcb6b708026bc83c01e38a43691c9064a0 (diff) | |
download | googletest-50c0bcd7e36374d6c3d0359c2160d8493e67527e.zip googletest-50c0bcd7e36374d6c3d0359c2160d8493e67527e.tar.gz googletest-50c0bcd7e36374d6c3d0359c2160d8493e67527e.tar.bz2 |
Cont. deal with MCVS warnings
Diffstat (limited to 'googlemock/include/gmock/internal/gmock-internal-utils.h')
-rw-r--r-- | googlemock/include/gmock/internal/gmock-internal-utils.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/googlemock/include/gmock/internal/gmock-internal-utils.h b/googlemock/include/gmock/internal/gmock-internal-utils.h index 030a1d6..85becb5 100644 --- a/googlemock/include/gmock/internal/gmock-internal-utils.h +++ b/googlemock/include/gmock/internal/gmock-internal-utils.h @@ -48,10 +48,12 @@ namespace testing { namespace internal { -// Silence C4100 (unreferenced formal -// parameter) for MSVC +// Silence MSVC C4100 (unreferenced formal parameter) and +// C4805('==': unsafe mix of type 'const int' and type 'const bool') #ifdef _MSC_VER +# pragma warning(push) # pragma warning(disable:4100) +# pragma warning(disable:C4805) #endif // Joins a vector of strings as if they are fields of a tuple; returns @@ -545,6 +547,12 @@ auto Apply(F&& f, Tuple&& args) make_int_pack<std::tuple_size<Tuple>::value>()); } #endif + + +#ifdef _MSC_VER +# pragma warning(pop) +#endif + } // namespace internal } // namespace testing |