jholine
Re:Rust vs. C++ Formatting
on Tuesday January 17, 2023 @04:54AM (#34410797)
Solved problem since ages ago.
error: format '%d' expects argument of type 'int', but argument 4 has type 'const char*' [-Werror=format=]
You only get into trouble when you use runtime format strings (like passing a user string as first argument to printf)