Fix mingw errors/warnings.

This commit is contained in:
castano 2010-06-10 02:28:49 +00:00
parent 82da6ea0a0
commit 5bb6a54f61
3 changed files with 5 additions and 6 deletions

View File

@ -15,7 +15,8 @@ SET(BC6H_SRCS
ADD_LIBRARY(bc6h STATIC ${BC6H_SRCS})
IF(CMAKE_COMPILER_IS_GNUCXX)
SET_TARGET_PROPERTIES(bc6h PROPERTIES COMPILE_FLAGS -fPIC)
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
IF(NOT WIN32)
IF(CMAKE_COMPILER_IS_GNUCXX)
SET_TARGET_PROPERTIES(bc6h PROPERTIES COMPILE_FLAGS -fPIC)
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
ENDIF(NOT WIN32)

View File

@ -579,7 +579,6 @@ static void optimize_endpts(const Tile &tile, int shapeindex, const double orig_
Vector3 pixels[Tile::TILE_TOTAL];
float importance[Tile::TILE_TOTAL];
double err = 0;
int indices[Tile::TILE_TOTAL];
for (int region=0; region<NREGIONS_ONE; ++region)
{

View File

@ -666,7 +666,6 @@ static void optimize_endpts(const Tile &tile, int shapeindex, const double orig_
Vector3 pixels[Tile::TILE_TOTAL];
float importance[Tile::TILE_TOTAL];
double err = 0;
int indices[Tile::TILE_TOTAL];
for (int region=0; region<NREGIONS_TWO; ++region)
{