mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-12 17:00:25 +08:00
Fixed vs 2015 warning abour fmt unused variable
This commit is contained in:
parent
e89d59995a
commit
31020f9eea
@ -2777,12 +2777,12 @@ void internal::basic_writer<Range>::write_double(T value,
|
|||||||
memory_buffer buffer;
|
memory_buffer buffer;
|
||||||
int exp = 0;
|
int exp = 0;
|
||||||
int precision = specs.precision >= 0 || !specs.type ? specs.precision : 6;
|
int precision = specs.precision >= 0 || !specs.type ? specs.precision : 6;
|
||||||
unsigned options = handler.fixed ? internal::grisu_options::fixed : 0;
|
|
||||||
bool use_grisu = USE_GRISU &&
|
bool use_grisu = USE_GRISU &&
|
||||||
(specs.type != 'a' && specs.type != 'A' &&
|
(specs.type != 'a' && specs.type != 'A' &&
|
||||||
specs.type != 'e' && specs.type != 'E') &&
|
specs.type != 'e' && specs.type != 'E') &&
|
||||||
internal::grisu_format(static_cast<double>(value), buffer,
|
internal::grisu_format(static_cast<double>(value), buffer,
|
||||||
precision, options, exp);
|
precision, handler.fixed ? internal::grisu_options::fixed : 0, exp);
|
||||||
char* decimal_point_pos = nullptr;
|
char* decimal_point_pos = nullptr;
|
||||||
if (!use_grisu)
|
if (!use_grisu)
|
||||||
decimal_point_pos = internal::sprintf_format(value, buffer, specs);
|
decimal_point_pos = internal::sprintf_format(value, buffer, specs);
|
||||||
|
Loading…
Reference in New Issue
Block a user