]> git.saurik.com Git - wxWidgets.git/commitdiff
eliminate unused variable warning with wxUSE_LOG_DEBUG==0
authorPaul Cornett <paulcor@bullseye.com>
Thu, 17 May 2012 15:45:50 +0000 (15:45 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Thu, 17 May 2012 15:45:50 +0000 (15:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71466 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/markupparser.cpp

index d9dcf452c7e2f01f4f9153e6076bcd80e0b3b774..cb87983b0e72f86b0d0f1bdfee96fc27da963b7b 100644 (file)
@@ -3,7 +3,7 @@
 // Purpose:     Implementation of wxMarkupParser.
 // Author:      Vadim Zeitlin
 // Created:     2011-02-16
-// RCS-ID:      $Id$
+// RCS-ID:      $Id$
 // Copyright:   (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
 // Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
@@ -279,11 +279,11 @@ bool wxMarkupParser::Parse(const wxString& text)
                         m_output.OnText(current);
                         current.clear();
                     }
-
+#if wxUSE_LOG_DEBUG
                     // Remember the tag starting position for the error
                     // messages.
                     const size_t pos = it - text.begin();
-
+#endif
                     bool start = true;
                     if ( ++it != end && *it == '/' )
                     {