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
9bc82ce7
Commit
9bc82ce7
authored
Apr 10, 2018
by
Gennadiy Civil
Browse files
merging
parent
25d8176e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
googlemock/test/gmock_output_test_.cc
googlemock/test/gmock_output_test_.cc
+5
-3
googletest/include/gtest/gtest.h
googletest/include/gtest/gtest.h
+4
-3
No files found.
googlemock/test/gmock_output_test_.cc
View file @
9bc82ce7
...
@@ -39,14 +39,12 @@
...
@@ -39,14 +39,12 @@
#include "gtest/gtest.h"
#include "gtest/gtest.h"
// Silence C4100 (unreferenced formal parameter)
// Silence C4100 (unreferenced formal parameter) for MSVC
#ifdef _MSC_VER
#ifdef _MSC_VER
# pragma warning(push)
# pragma warning(push)
# pragma warning(disable:4100)
# pragma warning(disable:4100)
#endif
#endif
using
testing
::
_
;
using
testing
::
_
;
using
testing
::
AnyNumber
;
using
testing
::
AnyNumber
;
using
testing
::
Ge
;
using
testing
::
Ge
;
...
@@ -306,3 +304,7 @@ int main(int argc, char **argv) {
...
@@ -306,3 +304,7 @@ int main(int argc, char **argv) {
TestCatchesLeakedMocksInAdHocTests
();
TestCatchesLeakedMocksInAdHocTests
();
return
RUN_ALL_TESTS
();
return
RUN_ALL_TESTS
();
}
}
#ifdef _MSC_VER
# pragma warning(pop)
#endif
googletest/include/gtest/gtest.h
View file @
9bc82ce7
...
@@ -82,11 +82,12 @@
...
@@ -82,11 +82,12 @@
namespace
testing
{
namespace
testing
{
// Silence C4100 (unreferenced formal parameter) for MSVC
// Silence C4100 (unreferenced formal parameter) and 4805
// unsafe mix of type 'const int' and type 'const bool'
#ifdef _MSC_VER
#ifdef _MSC_VER
# pragma warning(push)
# pragma warning(push)
# pragma warning(disable:4100)
# pragma warning(disable:4805)
# pragma warning(disable:4805)
# pragma warning(disable:4100)
#endif
#endif
...
@@ -2307,7 +2308,7 @@ bool StaticAssertTypeEq() {
...
@@ -2307,7 +2308,7 @@ bool StaticAssertTypeEq() {
GTEST_API_
std
::
string
TempDir
();
GTEST_API_
std
::
string
TempDir
();
#ifdef _MSC_VER
#ifdef _MSC_VER
# pragma warning(pop)
#
pragma warning(pop)
#endif
#endif
}
// 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