From 192c3efa7f0ee383ec5e5c12877627d6c20498a7 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Wed, 16 Feb 2011 05:13:00 +0000 Subject: [PATCH] fix GCC warning git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/memory.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/memory.cpp b/src/common/memory.cpp index 8855c9d3de..4253bae38e 100644 --- a/src/common/memory.cpp +++ b/src/common/memory.cpp @@ -118,8 +118,9 @@ void wxMemStruct::ErrorMsg () */ int wxMemStruct::AssertList () { - if (wxDebugContext::GetHead () != 0 && ! (wxDebugContext::GetHead ())->AssertIt () || - wxDebugContext::GetTail () != 0 && ! wxDebugContext::GetTail ()->AssertIt ()) { + if ((wxDebugContext::GetHead() && !wxDebugContext::GetHead()->AssertIt()) || + (wxDebugContext::GetTail() && !wxDebugContext::GetTail()->AssertIt())) + { ErrorMsg ("Head or tail pointers trashed"); return 0; } -- 2.45.2