X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e2cb99c8567e4010a2caf77e3e8b7e4501bf3d6a..ff534ba469473a9ace193e736ca131144df307f9:/src/common/markupparser.cpp diff --git a/src/common/markupparser.cpp b/src/common/markupparser.cpp index cb87983b0e..c0580e242f 100644 --- a/src/common/markupparser.cpp +++ b/src/common/markupparser.cpp @@ -279,7 +279,12 @@ bool wxMarkupParser::Parse(const wxString& text) m_output.OnText(current); current.clear(); } -#if wxUSE_LOG_DEBUG + + // This variable is used only in the debugging messages + // and doesn't need to be defined if they're not compiled + // at all (it actually would result in unused variable + // messages in this case). +#if wxUSE_LOG_DEBUG || !defined(HAVE_VARIADIC_MACROS) // Remember the tag starting position for the error // messages. const size_t pos = it - text.begin();