diff --git a/src/corelib/tools/qoffsetstringarray_p.h b/src/corelib/tools/qoffsetstringarray_p.h index 42ce2acb19b..1dc429a9bdc 100644 --- a/src/corelib/tools/qoffsetstringarray_p.h +++ b/src/corelib/tools/qoffsetstringarray_p.h @@ -106,12 +106,18 @@ struct StaticStringBuilder; template struct StaticStringBuilder, IndexesList> { + +QT_WARNING_PUSH +QT_WARNING_DISABLE_MSVC(4100) // The formal parameter is not referenced in the body of the function. + // The unreferenced parameter is ignored. + // It happens when 'rs' is StaticString<0> template static constexpr StaticString concatenate( const char (&ls)[N1], const T2 &rs) noexcept { return {ls[I1]..., rs.data[I2]...}; } +QT_WARNING_POP }; template