mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 13:18:38 +02:00
Add fall-through comments to fix GCC warnings
Unfortunately the attribute can't be used since we're not on C++17 yet.
This commit is contained in:
parent
e6bd75d497
commit
a8ab9307d0
4 changed files with 17 additions and 14 deletions
|
@ -168,6 +168,7 @@ const btCollisionShape* OtherAvatar::createCollisionShape(int32_t jointIndex, bo
|
||||||
}
|
}
|
||||||
// Note: MultiSphereLow case really means: "skip fingers and use spheres for hands,
|
// Note: MultiSphereLow case really means: "skip fingers and use spheres for hands,
|
||||||
// else fall through to MultiSphereHigh case"
|
// else fall through to MultiSphereHigh case"
|
||||||
|
/* fall-thru */
|
||||||
case BodyLOD::MultiSphereHigh:
|
case BodyLOD::MultiSphereHigh:
|
||||||
computeDetailedShapeInfo(shapeInfo, jointIndex);
|
computeDetailedShapeInfo(shapeInfo, jointIndex);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -424,6 +424,7 @@ void OctreeStatsDialog::showOctreeServersOfType(NodeType_t serverType) {
|
||||||
extraDetails << "<br/>" << itemInfo.caption << " " << stats.getItemValue(item);
|
extraDetails << "<br/>" << itemInfo.caption << " " << stats.getItemValue(item);
|
||||||
}
|
}
|
||||||
} // fall through... since MOST has all of MORE
|
} // fall through... since MOST has all of MORE
|
||||||
|
/* fall-thru */
|
||||||
case MORE: {
|
case MORE: {
|
||||||
QString totalString = locale.toString((uint)stats.getTotalElements());
|
QString totalString = locale.toString((uint)stats.getTotalElements());
|
||||||
QString internalString = locale.toString((uint)stats.getTotalInternal());
|
QString internalString = locale.toString((uint)stats.getTotalInternal());
|
||||||
|
|
|
@ -440,6 +440,7 @@ QVector<glm::uint32> scriptable::ScriptableMeshPart::getFace(glm::uint32 faceInd
|
||||||
if (faceIndex < getNumFaces()) {
|
if (faceIndex < getNumFaces()) {
|
||||||
return getIndices().mid(faceIndex * getTopologyLength(), getTopologyLength());
|
return getIndices().mid(faceIndex * getTopologyLength(), getTopologyLength());
|
||||||
}
|
}
|
||||||
|
/* fall-thru */
|
||||||
default: return QVector<glm::uint32>();
|
default: return QVector<glm::uint32>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -153,13 +153,13 @@ void packBlendshapeOffsets_AVX2(float (*unpacked)[9], uint32_t (*packed)[4], int
|
||||||
__m256 s7 = _mm256_setzero_ps();
|
__m256 s7 = _mm256_setzero_ps();
|
||||||
|
|
||||||
switch (rem) {
|
switch (rem) {
|
||||||
case 7: s6 = _mm256_loadu_ps(unpacked[i+6]);
|
case 7: s6 = _mm256_loadu_ps(unpacked[i+6]); /* fall-thru */
|
||||||
case 6: s5 = _mm256_loadu_ps(unpacked[i+5]);
|
case 6: s5 = _mm256_loadu_ps(unpacked[i+5]); /* fall-thru */
|
||||||
case 5: s4 = _mm256_loadu_ps(unpacked[i+4]);
|
case 5: s4 = _mm256_loadu_ps(unpacked[i+4]); /* fall-thru */
|
||||||
case 4: s3 = _mm256_loadu_ps(unpacked[i+3]);
|
case 4: s3 = _mm256_loadu_ps(unpacked[i+3]); /* fall-thru */
|
||||||
case 3: s2 = _mm256_loadu_ps(unpacked[i+2]);
|
case 3: s2 = _mm256_loadu_ps(unpacked[i+2]); /* fall-thru */
|
||||||
case 2: s1 = _mm256_loadu_ps(unpacked[i+1]);
|
case 2: s1 = _mm256_loadu_ps(unpacked[i+1]); /* fall-thru */
|
||||||
case 1: s0 = _mm256_loadu_ps(unpacked[i+0]);
|
case 1: s0 = _mm256_loadu_ps(unpacked[i+0]); /* fall-thru */
|
||||||
}
|
}
|
||||||
|
|
||||||
__m256 t0 = _mm256_unpacklo_ps(s0, s1);
|
__m256 t0 = _mm256_unpacklo_ps(s0, s1);
|
||||||
|
@ -269,13 +269,13 @@ void packBlendshapeOffsets_AVX2(float (*unpacked)[9], uint32_t (*packed)[4], int
|
||||||
|
|
||||||
// store pack x 8
|
// store pack x 8
|
||||||
switch (rem) {
|
switch (rem) {
|
||||||
case 7: _mm_storeu_si128((__m128i*)packed[i+6], _mm256_extractf128_si256(v2, 1));
|
case 7: _mm_storeu_si128((__m128i*)packed[i+6], _mm256_extractf128_si256(v2, 1)); /* fall-thru */
|
||||||
case 6: _mm_storeu_si128((__m128i*)packed[i+5], _mm256_extractf128_si256(v1, 1));
|
case 6: _mm_storeu_si128((__m128i*)packed[i+5], _mm256_extractf128_si256(v1, 1)); /* fall-thru */
|
||||||
case 5: _mm_storeu_si128((__m128i*)packed[i+4], _mm256_extractf128_si256(v0, 1));
|
case 5: _mm_storeu_si128((__m128i*)packed[i+4], _mm256_extractf128_si256(v0, 1)); /* fall-thru */
|
||||||
case 4: _mm_storeu_si128((__m128i*)packed[i+3], _mm256_castsi256_si128(v3));
|
case 4: _mm_storeu_si128((__m128i*)packed[i+3], _mm256_castsi256_si128(v3)); /* fall-thru */
|
||||||
case 3: _mm_storeu_si128((__m128i*)packed[i+2], _mm256_castsi256_si128(v2));
|
case 3: _mm_storeu_si128((__m128i*)packed[i+2], _mm256_castsi256_si128(v2)); /* fall-thru */
|
||||||
case 2: _mm_storeu_si128((__m128i*)packed[i+1], _mm256_castsi256_si128(v1));
|
case 2: _mm_storeu_si128((__m128i*)packed[i+1], _mm256_castsi256_si128(v1)); /* fall-thru */
|
||||||
case 1: _mm_storeu_si128((__m128i*)packed[i+0], _mm256_castsi256_si128(v0));
|
case 1: _mm_storeu_si128((__m128i*)packed[i+0], _mm256_castsi256_si128(v0)); /* fall-thru */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue