From b0c6d0c2f0dd8cd46c166319c1df3434029372f8 Mon Sep 17 00:00:00 2001 From: Mark Rivers Date: Tue, 18 Nov 2014 12:43:09 -0600 Subject: [PATCH] Add required include files for Linux; fix compiler warnings --- andorApp/src/shamrock.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/andorApp/src/shamrock.cpp b/andorApp/src/shamrock.cpp index 5bb3853..1307a0f 100755 --- a/andorApp/src/shamrock.cpp +++ b/andorApp/src/shamrock.cpp @@ -11,6 +11,9 @@ */ #include +#include +#include + #include #include @@ -238,7 +241,7 @@ asynStatus shamrock::getStatus() setDoubleParam(0, SRMaxWavelength_, calibration_[numPixels_-1]); // We need to find a C/C++ library to do 3'rd order polynomial fit // For now we do a first order fit! - double slope = (calibration_[numPixels_-1] - calibration_[0]) / (numPixels_-1); + //double slope = (calibration_[numPixels_-1] - calibration_[0]) / (numPixels_-1); for (i=0; ireason; - static const char *functionName = "readFloat32Array"; + //static const char *functionName = "readFloat32Array"; if (function == SRCalibration_) { *nIn = numPixels_; @@ -351,7 +354,7 @@ asynStatus shamrock::readFloat32Array(asynUser *pasynUser, epicsFloat32 *pValue, */ void shamrock::report(FILE *fp, int details) { - static const char *functionName = "report"; + //static const char *functionName = "report"; asynPortDriver::report(fp, details); return;