Kaynağa Gözat

Merge pull request #28 from mackron/QuatWarningFix

Fix a -Wswitch-default warning in GCC.
Christophe Riccio 13 yıl önce
ebeveyn
işleme
06b1578117
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4 0
      glm/gtc/quaternion.inl

+ 4 - 0
glm/gtc/quaternion.inl

@@ -707,6 +707,10 @@ namespace detail
 			Result.y = (m[1][2] + m[2][1]) * mult;
 			Result.z = biggestVal;
 			break;
+			
+        default:                // Silence a -Wswitch-default warning in GCC. Should never actually get here. Assert is just for sanity.
+            assert(false);
+            break;
 		}
 		return Result;
 	}