From e2985da8315e73dcf77872d7abc03d7b00cc484c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 18 May 2007 16:01:43 +0000 Subject: [PATCH] fix warning about unused rc variable in release builds git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/stack.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/wx/stack.h b/include/wx/stack.h index 2500a114c6..53f5121c2c 100644 --- a/include/wx/stack.h +++ b/include/wx/stack.h @@ -20,8 +20,10 @@ class cls : public wxVectorBase\ public:\ void push(const obj& o)\ {\ - bool rc = Alloc(size() + 1);\ - wxASSERT(rc);\ + if ( !Alloc(size() + 1) )\ + {\ + wxFAIL_MSG(_T("failed to extend stack"));\ + }\ Append(new obj(o));\ };\ \ -- 2.50.0