Browse Source

Fixed warnings on MacOS X

Christophe Riccio 13 years ago
parent
commit
1dda2390e5

+ 0 - 2
glm/core/func_common.inl

@@ -26,8 +26,6 @@
 /// @author Christophe Riccio
 ///////////////////////////////////////////////////////////////////////////////////
 
-#include "_vectorize.hpp"
-
 namespace glm{
 namespace detail
 {

+ 0 - 2
glm/core/func_exponential.inl

@@ -26,8 +26,6 @@
 /// @author Christophe Riccio
 ///////////////////////////////////////////////////////////////////////////////////
 
-#include "_vectorize.hpp"
-
 namespace glm
 {
     // pow

+ 0 - 2
glm/core/func_geometric.inl

@@ -26,8 +26,6 @@
 /// @author Christophe Riccio
 ///////////////////////////////////////////////////////////////////////////////////
 
-#include "_vectorize.hpp"
-
 namespace glm
 {
     // length

+ 1 - 2
glm/core/func_integer.inl

@@ -26,7 +26,6 @@
 /// @author Christophe Riccio
 ///////////////////////////////////////////////////////////////////////////////////
 
-#include "_vectorize.hpp"
 #if(GLM_COMPILER & GLM_COMPILER_VC)
 #include <intrin.h>
 #pragma intrinsic(_BitScanReverse)
@@ -589,7 +588,7 @@ namespace glm
 	{
 		GLM_STATIC_ASSERT(std::numeric_limits<genIUType>::is_integer, "'findMSB' only accept integer values");
 		
-		if(Value == 0 || Value == -1)
+		if(Value == genIUType(0) || Value == genIUType(-1))
 			return -1;
 		else if(Value > 0)
 		{

+ 0 - 2
glm/core/func_matrix.inl

@@ -26,8 +26,6 @@
 /// @author Christophe Riccio
 ///////////////////////////////////////////////////////////////////////////////////
 
-#include "_vectorize.hpp"
-
 namespace glm
 {
 	// matrixCompMult

+ 0 - 2
glm/core/func_trigonometric.inl

@@ -26,8 +26,6 @@
 /// @author Christophe Riccio
 ///////////////////////////////////////////////////////////////////////////////////
 
-#include "_vectorize.hpp"
-
 namespace glm
 {
 	// radians

+ 1 - 0
glm/glm.hpp

@@ -94,6 +94,7 @@
 #endif//GLM_MESSAGE
 
 #include "./core/_detail.hpp"
+#include "./core/_vectorize.hpp"
 #include "./core/type.hpp"
 
 #include "./core/func_trigonometric.hpp"

+ 0 - 1
glm/gtc/random.inl

@@ -28,7 +28,6 @@
 
 #include <ctime>
 #include <cassert>
-#include "../core/_vectorize.hpp"
 
 namespace glm{
 namespace detail

+ 0 - 2
glm/gtc/reciprocal.inl

@@ -26,8 +26,6 @@
 /// @author Christophe Riccio
 ///////////////////////////////////////////////////////////////////////////////////
 
-#include "../core/_vectorize.hpp"
-
 namespace glm
 {
 	// sec

+ 0 - 3
glm/gtx/bit.inl

@@ -7,9 +7,6 @@
 // File    : glm/gtx/bit.inl
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 
-#include "../core/_detail.hpp"
-#include "../core/_vectorize.hpp"
-
 namespace glm
 {
 	template <typename genIType>

+ 0 - 2
glm/gtx/fast_exponential.inl

@@ -7,8 +7,6 @@
 // File    : glm/gtx/fast_exponential.inl
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 
-#include "../core/_vectorize.hpp"
-
 namespace glm
 {
 	// fastPow:

+ 0 - 2
glm/gtx/fast_square_root.inl

@@ -7,8 +7,6 @@
 // File    : glm/gtx/fast_square_root.inl
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 
-#include "../core/_vectorize.hpp"
-
 namespace glm
 {
 	// fastSqrt

+ 0 - 2
glm/gtx/fast_trigonometry.inl

@@ -7,8 +7,6 @@
 // File    : glm/gtx/fast_trigonometry.inl
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 
-#include "../core/_vectorize.hpp"
-
 namespace glm
 {
 	// sin

+ 0 - 2
glm/gtx/log_base.inl

@@ -7,8 +7,6 @@
 // File    : glm/gtx/log_base.inl
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 
-#include "../core/_vectorize.hpp"
-
 namespace glm
 {
 	template <typename genType> 

+ 0 - 2
glm/gtx/multiple.inl

@@ -10,8 +10,6 @@
 // - GLM core
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 
-#include "../core/_vectorize.hpp"
-
 namespace glm
 {
 	//////////////////////

+ 0 - 2
test/external/gli/gtx/loader.inl

@@ -33,8 +33,6 @@ namespace loader
 		std::string const & Filename
 	)
 	{
-		char const * File = Filename.c_str();
-
 		if(Filename.find(".dds") != std::string::npos)
 			saveDDS10(Image, Filename);
 		else if(Filename.find(".tga") != std::string::npos)