Commit 59a38155 authored by Tor Didriksen's avatar Tor Didriksen

Bug#12406055 post-push fix: unused variable 'num_chars' in optimized build.

parent ef37d6de
......@@ -200,7 +200,8 @@ bool String::set_real(double num,uint decimals, CHARSET_INFO *cs)
#else
#ifdef HAVE_SNPRINTF
buff[sizeof(buff)-1]=0; // Safety
int num_chars= snprintf(buff, sizeof(buff)-1, "%.*f",(int) decimals, num);
IF_DBUG(int num_chars= )
snprintf(buff, sizeof(buff)-1, "%.*f",(int) decimals, num);
DBUG_ASSERT(num_chars > 0);
DBUG_ASSERT(num_chars < (int) sizeof(buff));
#else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment