3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-03 09:50:24 +00:00

Fix GCC compiler warning

This commit is contained in:
Miodrag Milanovic 2025-07-29 17:02:48 +02:00
parent 1d229ae254
commit b4f9feaf07

View file

@ -392,7 +392,7 @@ template <typename... Args>
inline std::string format_emit_toplevel(std::string_view fmt, bool has_escapes, const FoundFormatSpec* specs, const Args &... args) inline std::string format_emit_toplevel(std::string_view fmt, bool has_escapes, const FoundFormatSpec* specs, const Args &... args)
{ {
std::string result; std::string result;
int dynamic_ints[2] = { 0, 0 }; int dynamic_ints[3] = { 0, 0, 0 };
format_emit(result, fmt, 0, has_escapes, specs, dynamic_ints, DynamicIntCount::NONE, args...); format_emit(result, fmt, 0, has_escapes, specs, dynamic_ints, DynamicIntCount::NONE, args...);
return result; return result;
} }