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
a3a42514
Unverified
Commit
a3a42514
authored
Nov 10, 2018
by
Robin Lindén
Browse files
Define GTEST_DISABLE_MSC_WARNINGS_PUSH/POP for all compilers
parent
c43603f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
googletest/include/gtest/internal/gtest-port.h
googletest/include/gtest/internal/gtest-port.h
+4
-0
No files found.
googletest/include/gtest/internal/gtest-port.h
View file @
a3a42514
...
@@ -310,6 +310,10 @@
...
@@ -310,6 +310,10 @@
__pragma(warning(disable: warnings))
__pragma(warning(disable: warnings))
# define GTEST_DISABLE_MSC_WARNINGS_POP_() \
# define GTEST_DISABLE_MSC_WARNINGS_POP_() \
__pragma(warning(pop))
__pragma(warning(pop))
#else
// Not all compilers are MSVC
# define GTEST_DISABLE_MSC_WARNINGS_PUSH_(warnings)
# define GTEST_DISABLE_MSC_WARNINGS_POP_()
#endif
#endif
// Clang on Windows does not understand MSVC's pragma warning.
// Clang on Windows does not understand MSVC's pragma warning.
...
...
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