QOffsetStringArray/msvc: fix compilation warnings C4100
C4100 - identifier' : unreferenced formal parameter It happens when we call StaticStringBuilder::concatenate(StaticString<N>, StaticString<0>). StaticString<0> is ignored. Change-Id: Ic687bc865aa5d5e7425cbddbd614bde7dbb801df Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
f21330b749
commit
59fc64cfc5
@ -106,12 +106,18 @@ struct StaticStringBuilder;
|
||||
template<int ... I1, int ... I2>
|
||||
struct StaticStringBuilder<IndexesList<I1...>, IndexesList<I2...>>
|
||||
{
|
||||
|
||||
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<int N1, typename T2>
|
||||
static constexpr StaticString<N1 + T2::size()> concatenate(
|
||||
const char (&ls)[N1], const T2 &rs) noexcept
|
||||
{
|
||||
return {ls[I1]..., rs.data[I2]...};
|
||||
}
|
||||
QT_WARNING_POP
|
||||
};
|
||||
|
||||
template<int Sum>
|
||||
|
Loading…
x
Reference in New Issue
Block a user