Przeglądaj źródła

Merge branch '0.9.4' of https://github.com/g-truc/glm into 0.9.4

Christophe Riccio 13 lat temu
rodzic
commit
b033f9b4e8
1 zmienionych plików z 4 dodań i 0 usunięć
  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.y = (m[1][2] + m[2][1]) * mult;
 			Result.z = biggestVal;
 			Result.z = biggestVal;
 			break;
 			break;
+			
+        default:                // Silence a -Wswitch-default warning in GCC. Should never actually get here. Assert is just for sanity.
+            assert(false);
+            break;
 		}
 		}
 		return Result;
 		return Result;
 	}
 	}