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,strftimeorstrfmon.ms_printf,ms_strftimein mingw.gnu_xxxfor glibc
1 2 3 | |
member function in C++ have the
thisargument. So the index must be counted from 2.
https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#Common-Function-Attributes