diff --git a/Testing/Utilities/openthreadsWorkCrew.cpp b/Testing/Utilities/openthreadsWorkCrew.cpp index 727fa88fbfccf8c2a547438d0fb5fea50ee0fdfc..9f22a60090e792b70028659d08c796abbc3e1415 100644 --- a/Testing/Utilities/openthreadsWorkCrew.cpp +++ b/Testing/Utilities/openthreadsWorkCrew.cpp @@ -44,7 +44,7 @@ #include <OpenThreads/Condition> #include <OpenThreads/Barrier> -extern int errno; +//extern int errno; #ifdef DEBUG # define DPRINTF(arg) printf arg @@ -313,7 +313,8 @@ int crew_start(Crew *crew) { // status = crew->mutex.lock(); if(status != 0) { - DPRINTF(("Lock Error: %s\n", strerror(errno))); +// OTB Modif DPRINTF(("Lock Error: %s\n", strerror(errno))); + DPRINTF(("Lock Error !\n")); } assert(status == 0); diff --git a/Testing/Utilities/siftfast.cpp b/Testing/Utilities/siftfast.cpp index 53d822573fc635c9a916079a10301085fe3e460f..35d7d2dc372b319ed1a4bb05fea585112809c8d9 100755 --- a/Testing/Utilities/siftfast.cpp +++ b/Testing/Utilities/siftfast.cpp @@ -89,7 +89,7 @@ SiftFastImage ReadPGM(FILE *fp) image = CreateImage(height, width); for (r = 0; r < height; r++) for (c = 0; c < width; c++) - image->pixels[r*image->stride+c] = ((float) fgetc(fp)) / 255.0; + image->pixels[r*image->stride+c] = static_cast<float>(((float) fgetc(fp)) / 255.0); //Check if there is another image in this file, as the latest PGM // standard allows for multiple images.