Skip to content

Commit

Permalink
refs #6449 Some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
abuts committed Apr 6, 2013
1 parent 6c151c3 commit 2bb7b4f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/MDAlgorithms/src/MergeMDFiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ namespace MDAlgorithms

this->totalLoaded = 0;
std::vector<API::IMDNode *> &boxes = m_BoxStruct.getBoxes();
std::vector<uint64_t> &targetEventIndexes= m_BoxStruct.getEventIndex();
//std::vector<uint64_t> &targetEventIndexes= m_BoxStruct.getEventIndex();

for(size_t ib=0;ib<numBoxes;ib++)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ namespace Mantid
/**function checks if the containing box has enough data
* the definition "enough" is also specified within this function
*/
bool isFull(size_t maxSize=1000)
bool isFull(size_t /*maxSize=1000*/)
{
/**stub */
return true;
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/MDEvents/src/MDBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ namespace MDEvents
* @param index :: current index for box
*/
TMDE(
void MDBox)::addAndTraceEvent( const MDE & point, size_t index)
void MDBox)::addAndTraceEvent( const MDE & point, size_t /*index*/)
{
this->m_dataMutex.lock();
this->data.push_back(point);
Expand Down
4 changes: 2 additions & 2 deletions Code/Mantid/Framework/MDEvents/src/MDBoxFlatTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ namespace Mantid
m_BoxSignalErrorsquared[id*2] = double(Box->getSignal());
m_BoxSignalErrorsquared[id*2+1] = double(Box->getErrorSquared());
m_InverseVolume[id] = Box->getInverseVolume();
for (size_t d=0; d<m_nDim; d++)
for (int d=0; d<m_nDim; d++)
{
size_t newIndex = id*(m_nDim*2) + d*2;
size_t newIndex = id*size_t(m_nDim*2) + d*2;
m_Extents[newIndex] = Box->getExtents(d).getMin();
m_Extents[newIndex+1] = Box->getExtents(d).getMax();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void setUp()

void testWriteReadReadFloat()
{
MDEvents::BoxControllerNxSIO *pSaver;
MDEvents::BoxControllerNxSIO *pSaver(NULL);
TS_ASSERT_THROWS_NOTHING(pSaver=new MDEvents::BoxControllerNxSIO(sc.get()));
std::string FullPathFile;

Expand Down

0 comments on commit 2bb7b4f

Please sign in to comment.