Variable Argument List¶
printf-like¶
1 2 3 4 5 6 7 8 |
|
gcc warning¶
Type-checked against a format string. Enable by -Wformat
format (archetype, string-index, first-to-check)
- Types:
printf
,scanf
,strftime
orstrfmon
.ms_printf
,ms_strftime
in mingw.gnu_xxx
for glibc
1 2 3 |
|
member function in C++ have the
this
argument. So the index must be counted from 2.
https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#Common-Function-Attributes