Closed neheb closed 4 years ago
const char *fmt is a variable, not a constant expression (it's not even constant).
Change to a define so GCC can check it properly.
I tried doing cute things with constexpr to avoid having a define, but everything I tried failed.
edit: This fixes -Werror=format=2
const char *fmt is a variable, not a constant expression (it's not even constant).
Change to a define so GCC can check it properly.
I tried doing cute things with constexpr to avoid having a define, but everything I tried failed.
edit: This fixes -Werror=format=2