diff options
author | Mathias Preiner <mathias.preiner@gmail.com> | 2021-03-10 11:40:15 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-10 19:40:15 +0000 |
commit | 27fb04bc96999e101b45458c549345e864e085e9 (patch) | |
tree | db3326985c464226c544c3b234ca772efa1854f9 /test | |
parent | 99acb6adc4858e9228a75283c0d4a640ce7cc812 (diff) |
cmake: Fix optimization level for debug builds. (#6097)
Further cleans up some unused variables and moves the configuration of
best to configure.sh.
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/expr/node_black.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/unit/expr/node_black.cpp b/test/unit/expr/node_black.cpp index 61150799c..0d481ea4f 100644 --- a/test/unit/expr/node_black.cpp +++ b/test/unit/expr/node_black.cpp @@ -107,9 +107,12 @@ TEST_F(TestNodeBlackNode, copy_ctor) { Node e(Node::null()); } TEST_F(TestNodeBlackNode, dtor) { /* No access to internals? Only test that this is crash free. */ - Node* n; + Node* n = nullptr; ASSERT_NO_FATAL_FAILURE(n = new Node()); - delete n; + if (n) + { + delete n; + } } /* operator== */ |