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:
authorNeil MacIntosh <neilmac@microsoft.com>2015-11-13 06:27:53 +0300
committerNeil MacIntosh <neilmac@microsoft.com>2015-11-13 06:27:53 +0300
commitfa056f67e8c0c3ef27df5da241c714cc0f45d71a (patch)
tree0ccff2bcefe2ffb5271c9d8a5773f38e2feacc2b /tests/notnull_tests.cpp
parenta998a9b33b3cbcc12595391de8d62a33eb14d290 (diff)
Enabled -Wall for gcc and clang.
Diffstat (limited to 'tests/notnull_tests.cpp')
-rw-r--r--tests/notnull_tests.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/notnull_tests.cpp b/tests/notnull_tests.cpp
index a9624b8..67b478a 100644
--- a/tests/notnull_tests.cpp
+++ b/tests/notnull_tests.cpp
@@ -69,7 +69,8 @@ SUITE(NotNullTests)
MyDerived derived;
Unrelated unrelated;
not_null<Unrelated*> u = &unrelated;
- not_null<MyDerived*> p = &derived;
+ (void)u;
+ not_null<MyDerived*> p = &derived;
not_null<MyBase*> q = &base;
q = p; // allowed with heterogeneous copy ctor
CHECK(q == p);