diff options
author | Neil MacIntosh <neilmac@microsoft.com> | 2015-11-13 06:27:53 +0300 |
---|---|---|
committer | Neil MacIntosh <neilmac@microsoft.com> | 2015-11-13 06:27:53 +0300 |
commit | fa056f67e8c0c3ef27df5da241c714cc0f45d71a (patch) | |
tree | 0ccff2bcefe2ffb5271c9d8a5773f38e2feacc2b /tests/notnull_tests.cpp | |
parent | a998a9b33b3cbcc12595391de8d62a33eb14d290 (diff) |
Enabled -Wall for gcc and clang.
Diffstat (limited to 'tests/notnull_tests.cpp')
-rw-r--r-- | tests/notnull_tests.cpp | 3 |
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); |