int offset = 0;
unsigned int width;
char base[2] = {'d', 0}; // char plus null byte
- // cppcheck-suppress invalidscanf
+ // cppcheck-suppress invalidscanf_libc
const int n = sscanf(scan_str, "{%d,%u,%1[doxXnN]}",
&offset, &width, base);
switch (n) {
unsigned int start;
unsigned int stop;
unsigned int step;
- // cppcheck-suppress invalidscanf
+ // cppcheck-suppress invalidscanf_libc
const int n = sscanf(range.c_str(), "%u-%u/%u", &start, &stop, &step);
if ((n < 2) || (stop < start)) {
reportError(lexer_.getSourceName(), lexer_.getSourceLine(),