diff --git a/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp b/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp index fc6db61d78f..0aa68d74a15 100644 --- a/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp +++ b/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp @@ -9,6 +9,8 @@ #include #include "private/qemulationdetector_p.h" +#include + #include #ifdef Q_OS_WIN @@ -69,7 +71,7 @@ static int qInfoPrinter(const char *format, ...) va_list ap; va_start(ap, format); // use variable arg list - int n = qvsnprintf(buf + bufuse, sizeof(buf) - bufuse, format, ap); + const int n = std::vsnprintf(buf + bufuse, sizeof(buf) - bufuse, format, ap); va_end(ap); bufuse += n;