X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/05962bdd2b52a26ea79e49c09af79008ada706d1..fc50ab90814c4fefef79be94226d335054f2ae50:/include/wx/private/wxprintf.h?ds=sidebyside 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;