From 5e475383d8c0f6252c520d20667cb754c22b919c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 9 Jul 2004 21:19:00 +0000 Subject: [PATCH] fixed a warning about unusable code in release build git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/log.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/common/log.cpp b/src/common/log.cpp index f4250830b4..d9a6c7eb30 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -199,7 +199,10 @@ void wxLogFatalError(const wxChar *szFormat, ...) va_list argptr; va_start(argptr, szFormat); wxVLogFatalError(szFormat, argptr); - va_end(argptr); + + // some compilers warn about unreachable code and it shouldn't matter + // for the others anyhow... + //va_end(argptr); } // same as info, but only if 'verbose' mode is on -- 2.50.0