Enabled -Wall for gcc and clang.

This commit is contained in:
Neil MacIntosh
2015-11-13 03:27:53 +00:00
parent a998a9b33b
commit fa056f67e8
5 changed files with 32 additions and 16 deletions

View File

@@ -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);