Fixed warnings on MacOS X

This commit is contained in:
Christophe Riccio 2012-11-04 14:26:54 +01:00
parent 1ded040f23
commit 1dda2390e5
16 changed files with 2 additions and 30 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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