Skip to content

Commit

Permalink
Fixed compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenvlek committed Feb 28, 2013
1 parent 97c32a9 commit d1903b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ const RGBA32* Image::get(unsigned int x, unsigned int y)
return _imp->get(x,y);
}

void Image::drawGene(const Gene& gene)
void Image::drawGene(const Gene&)
{
std::cout << "[ Image::drawGene() ] Only PhenotypeImage draw gene" << std::endl;
std::cout << "[ Image::drawGene() ] Only PhenotypeImage draws gene" << std::endl;
}

ImageImp& Image::getImageImp()
Expand Down
2 changes: 1 addition & 1 deletion ImageCompare.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ double ImageCompare::compare(Image& a, Image& b)

// first rough implementation: compute average Euclidean distance between pixels
double avgDistance = 0.0;
unsigned int totalPixels;
unsigned int totalPixels = 0;
for(unsigned int x = 0; x < a.getWidth(); ++x) {
for(unsigned int y = 0; y < a.getHeight(); ++y) {
const RGBA32* pixelA = a.get(x, y);
Expand Down
3 changes: 1 addition & 2 deletions ImageImp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ ImageImp::~ImageImp()
{
}

ImageImp::ImageImp(const unsigned int width, const unsigned int height)
{
ImageImp::ImageImp(const unsigned int, const unsigned int ){
}

0 comments on commit d1903b3

Please sign in to comment.