From 5fe03f692e80033e186e03fe6c25e0463a4bc5f5 Mon Sep 17 00:00:00 2001 From: Alexander Gessler Date: Mon, 8 Apr 2013 19:45:09 +0200 Subject: [PATCH] - FBX: silence some warnings produced by clang about missing switch cases. Add TokenType_BINARY_DATA to TokenTypeString() function. --- code/FBXConverter.cpp | 7 +++++++ code/FBXUtil.cpp | 3 +++ 2 files changed, 10 insertions(+) diff --git a/code/FBXConverter.cpp b/code/FBXConverter.cpp index e91e61c28..b04d8881c 100644 --- a/code/FBXConverter.cpp +++ b/code/FBXConverter.cpp @@ -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); diff --git a/code/FBXUtil.cpp b/code/FBXUtil.cpp index 8b6e9c806..aaf311d03 100644 --- a/code/FBXUtil.cpp +++ b/code/FBXUtil.cpp @@ -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);