Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/GSL.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRian Quinn <rianquinn@gmail.com>2016-11-04 04:38:32 +0300
committerNeil MacIntosh <neilmac@microsoft.com>2016-11-04 04:38:32 +0300
commitd641796b21cef4730efa5bac268c28662fd67d80 (patch)
tree03b160162e2ac7077381d61ffecefaae324878bc /tests/notnull_tests.cpp
parent38f453d608d7012a8d0f93f6c8b1d424c99b9b3e (diff)
Cleanup additional GCC warnings
When turning on the following flags, several additional warnings were generated, which have been cleaned up in this patch. The flags included: -Wextra -Wpedantic -Wconversion -Wsign-conversion -Wctor-dtor-privacy -Wshadow -Wnon-virtual-dtor -Wold-style-cast -Wcast-align -Woverloaded-virtual
Diffstat (limited to 'tests/notnull_tests.cpp')
-rw-r--r--tests/notnull_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/notnull_tests.cpp b/tests/notnull_tests.cpp
index 526b074..201b797 100644
--- a/tests/notnull_tests.cpp
+++ b/tests/notnull_tests.cpp
@@ -83,7 +83,7 @@ SUITE(NotNullTests)
not_null<Unrelated*> s = reinterpret_cast<Unrelated*>(p);
#endif
not_null<Unrelated*> t = reinterpret_cast<Unrelated*>(p.get());
- CHECK((void*)p.get() == (void*)t.get());
+ CHECK(reinterpret_cast<void*>(p.get()) == reinterpret_cast<void*>(t.get()));
}
TEST(TestNotNullAssignment)