X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/05962bdd2b52a26ea79e49c09af79008ada706d1..9174364320602d6ec18a01935005013984bb59a4:/include/wx/private/wxprintf.h diff --git a/include/wx/private/wxprintf.h b/include/wx/private/wxprintf.h index e83002f4a7..4b7b890454 100644 --- a/include/wx/private/wxprintf.h +++ b/include/wx/private/wxprintf.h @@ -254,7 +254,11 @@ bool wxPrintfConvSpec::Parse(const CharType *format) break; case wxT('.'): - CHECK_PREC + // don't use CHECK_PREC here to avoid warning about the value + // assigned to prec_dot inside it being never used (because + // overwritten just below) from Borland in release build + if (in_prec && !prec_dot) + m_szFlags[flagofs++] = '.'; in_prec = true; prec_dot = false; m_nMaxWidth = 0;