Merge pull request #13052 from kitely/fix-gcc-warnings

Eliminated warnings in gcc
This commit is contained in:
Ken Cooke 2018-05-02 06:43:32 -07:00 committed by GitHub
commit a4105f1081
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 2 deletions

View file

@ -63,7 +63,7 @@ struct AssetMeta {
AssetMeta() { AssetMeta() {
} }
BakeVersion bakeVersion; BakeVersion bakeVersion { INITIAL_BAKE_VERSION };
bool failedLastBake { false }; bool failedLastBake { false };
QString lastBakeErrors; QString lastBakeErrors;
}; };

View file

@ -150,6 +150,7 @@ int InboundAudioStream::parseData(ReceivedMessage& message) {
// fall through to OnTime case // fall through to OnTime case
} }
// FALLTHRU
case SequenceNumberStats::OnTime: { case SequenceNumberStats::OnTime: {
// Packet is on time; parse its data to the ringbuffer // Packet is on time; parse its data to the ringbuffer
if (message.getType() == PacketType::SilentAudioFrame if (message.getType() == PacketType::SilentAudioFrame

View file

@ -1402,6 +1402,7 @@ int EntityTree::processEditPacketData(ReceivedMessage& message, const unsigned c
case PacketType::EntityAdd: case PacketType::EntityAdd:
isAdd = true; // fall through to next case isAdd = true; // fall through to next case
// FALLTHRU
case PacketType::EntityPhysics: case PacketType::EntityPhysics:
case PacketType::EntityEdit: { case PacketType::EntityEdit: {
quint64 startDecode = 0, endDecode = 0; quint64 startDecode = 0, endDecode = 0;

View file

@ -142,7 +142,6 @@ void FBXWriter::encodeFBXProperty(QDataStream& out, const QVariant& prop) {
out << prop.toInt(); out << prop.toInt();
break; break;
encodeNode(out, FBXNode());
case QMetaType::Float: case QMetaType::Float:
out.device()->write("F", 1); out.device()->write("F", 1);
out << prop.toFloat(); out << prop.toFloat();

View file

@ -750,6 +750,7 @@ bool Resource::handleFailedRequest(ResourceRequest::Result result) {
qCDebug(networking) << "Timed out loading" << _url << "received" << _bytesReceived << "total" << _bytesTotal; qCDebug(networking) << "Timed out loading" << _url << "received" << _bytesReceived << "total" << _bytesTotal;
// Fall through to other cases // Fall through to other cases
} }
// FALLTHRU
case ResourceRequest::Result::ServerUnavailable: { case ResourceRequest::Result::ServerUnavailable: {
_attempts++; _attempts++;
_attemptsRemaining--; _attemptsRemaining--;
@ -768,6 +769,7 @@ bool Resource::handleFailedRequest(ResourceRequest::Result result) {
} }
// fall through to final failure // fall through to final failure
} }
// FALLTHRU
default: { default: {
_attemptsRemaining = 0; _attemptsRemaining = 0;
qCDebug(networking) << "Error loading " << _url << "attempt:" << _attempts << "attemptsRemaining:" << _attemptsRemaining; qCDebug(networking) << "Error loading " << _url << "attempt:" << _attempts << "attemptsRemaining:" << _attemptsRemaining;

View file

@ -60,6 +60,7 @@ bool gunzip(QByteArray source, QByteArray &destination) {
switch (status) { switch (status) {
case Z_NEED_DICT: case Z_NEED_DICT:
status = Z_DATA_ERROR; status = Z_DATA_ERROR;
// FALLTHRU
case Z_DATA_ERROR: case Z_DATA_ERROR:
case Z_MEM_ERROR: case Z_MEM_ERROR:
case Z_STREAM_ERROR: case Z_STREAM_ERROR: