From 8af803e8e66cec979eed66ccce0a7f97da3125d6 Mon Sep 17 00:00:00 2001 From: Thomas Feuvrier <thomas.feuvrier@c-s.fr> Date: Tue, 28 Apr 2009 14:56:28 +0200 Subject: [PATCH] WRG: Suppress Visual Express 2008 warning --- Testing/Utilities/openthreadsWorkCrew.cpp | 5 +++-- Testing/Utilities/siftfast.cpp | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Testing/Utilities/openthreadsWorkCrew.cpp b/Testing/Utilities/openthreadsWorkCrew.cpp index 727fa88fbf..9f22a60090 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 53d822573f..35d7d2dc37 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. -- GitLab