Bug#12406055 post-push fix: unused variable 'num_chars' in optimized build.
This commit is contained in:
parent
ef37d6de11
commit
59a38155bb
@ -200,7 +200,8 @@ end:
|
||||
#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
|
||||
|
Loading…
x
Reference in New Issue
Block a user