- FBX: silence some warnings produced by clang about missing switch cases. Add TokenType_BINARY_DATA to TokenTypeString() function.

pull/27/head
Alexander Gessler 2013-04-08 19:45:09 +02:00
parent 47b2832dd8
commit 5fe03f692e
2 changed files with 10 additions and 0 deletions

View File

@ -419,6 +419,8 @@ private:
return "Scaling";
case TransformationComp_ScalingPivotInverse:
return "ScalingPivotInverse";
case TransformationComp_MAXIMUM: // this is to silence compiler warnings
break;
}
ai_assert(false);
@ -454,6 +456,8 @@ private:
return "Lcl Scaling";
case TransformationComp_ScalingPivotInverse:
return "ScalingPivotInverse";
case TransformationComp_MAXIMUM: // this is to silence compiler warnings
break;
}
ai_assert(false);
@ -1608,6 +1612,9 @@ private:
case FileGlobalSettings::FrameRate_CUSTOM:
return customFPSVal;
case FileGlobalSettings::FrameRate_MAX: // this is to silence compiler warnings
break;
}
ai_assert(false);

View File

@ -72,6 +72,9 @@ const char* TokenTypeString(TokenType t)
case TokenType_KEY:
return "TOK_KEY";
case TokenType_BINARY_DATA:
return "TOK_BINARY_DATA";
}
ai_assert(false);