Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
50c0bcd7
Commit
50c0bcd7
authored
Apr 06, 2018
by
Gennadiy Civil
Browse files
Cont. deal with MCVS warnings
parent
b5c87fbc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
googlemock/include/gmock/gmock-more-matchers.h
googlemock/include/gmock/gmock-more-matchers.h
+6
-0
googlemock/include/gmock/internal/gmock-internal-utils.h
googlemock/include/gmock/internal/gmock-internal-utils.h
+10
-2
No files found.
googlemock/include/gmock/gmock-more-matchers.h
View file @
50c0bcd7
...
@@ -46,6 +46,7 @@ namespace testing {
...
@@ -46,6 +46,7 @@ namespace testing {
// Silence C4100 (unreferenced formal
// Silence C4100 (unreferenced formal
// parameter) for MSVC
// parameter) for MSVC
#ifdef _MSC_VER
#ifdef _MSC_VER
# pragma warning(push)
# pragma warning(disable:4100)
# pragma warning(disable:4100)
#if (_MSC_VER == 1900)
#if (_MSC_VER == 1900)
# pragma warning(disable:4800)
# pragma warning(disable:4800)
...
@@ -78,6 +79,11 @@ MATCHER(IsFalse, negation ? "is true" : "is false") {
...
@@ -78,6 +79,11 @@ MATCHER(IsFalse, negation ? "is true" : "is false") {
return
!
static_cast
<
bool
>
(
arg
);
return
!
static_cast
<
bool
>
(
arg
);
}
}
#ifdef _MSC_VER
# pragma warning(pop)
#endif
}
// namespace testing
}
// namespace testing
#endif // GMOCK_GMOCK_MORE_MATCHERS_H_
#endif // GMOCK_GMOCK_MORE_MATCHERS_H_
googlemock/include/gmock/internal/gmock-internal-utils.h
View file @
50c0bcd7
...
@@ -48,10 +48,12 @@
...
@@ -48,10 +48,12 @@
namespace
testing
{
namespace
testing
{
namespace
internal
{
namespace
internal
{
// Silence C4100 (unreferenced formal
// Silence
MSVC
C4100 (unreferenced formal
parameter) and
//
parameter) for MSVC
//
C4805('==': unsafe mix of type 'const int' and type 'const bool')
#ifdef _MSC_VER
#ifdef _MSC_VER
# pragma warning(push)
# pragma warning(disable:4100)
# pragma warning(disable:4100)
# pragma warning(disable:C4805)
#endif
#endif
// Joins a vector of strings as if they are fields of a tuple; returns
// Joins a vector of strings as if they are fields of a tuple; returns
...
@@ -545,6 +547,12 @@ auto Apply(F&& f, Tuple&& args)
...
@@ -545,6 +547,12 @@ auto Apply(F&& f, Tuple&& args)
make_int_pack
<
std
::
tuple_size
<
Tuple
>::
value
>
());
make_int_pack
<
std
::
tuple_size
<
Tuple
>::
value
>
());
}
}
#endif
#endif
#ifdef _MSC_VER
# pragma warning(pop)
#endif
}
// namespace internal
}
// namespace internal
}
// namespace testing
}
// namespace testing
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment