gabime / spdlog

Fast C++ logging library.
Other
24.29k stars 4.54k forks source link

error: uninitialized variable 'buffer' in 'constexpr' function #2637

Closed jordissm closed 1 year ago

jordissm commented 1 year ago

Hi,

I get the following error on compilation of spdlog as a dependency of another program (Doxygen):

error: uninitialized variable 'buffer' in 'constexpr' function

due to this line -> https://github.com/gabime/spdlog/blob/927cc29444a294d76e83dfb898e797dc431ce094/include/spdlog/fmt/bundled/format.h#L1241

I'm fairly new to spdlog and Doxygen, so apologies if I'm missing something obvious.

tt4g commented 1 year ago

spdlog/include/spdlog/fmt/bundled/format.h is bundled with spdlog but is source code from the fmt library. It should be reported to the [fmt repository}(https://github.com/fmtlib/fmt).

And this issue already fixed (not released yet): fmtlib/fmt@40e414d823d8af78cf6f52f3356c4c54e02eb62f