Commit ea85a494 authored by jcfr's avatar jcfr

COMP: Fix -Wsign-compare, -Wunused-parameter and -Wunused-variable warnings

git-svn-id: http://svn.slicer.org/Slicer4/trunk@27990 3bd1e089-480b-0410-8dfb-8563597acbee
parent d9c9d475
......@@ -123,5 +123,8 @@ QStringList qSlicerFileReader::loadedNodes()const
//----------------------------------------------------------------------------
bool qSlicerFileReader::examineFileInfoList(QFileInfoList &fileInfoList, QFileInfo &archetypeFileInfo, qSlicerIO::IOProperties &ioProperties)const
{
Q_UNUSED(fileInfoList);
Q_UNUSED(archetypeFileInfo);
Q_UNUSED(ioProperties);
return(false);
}
......@@ -120,6 +120,7 @@ QStringList qSlicerSingletonViewFactory::supportedElementNames() const
//---------------------------------------------------------------------------
QWidget* qSlicerSingletonViewFactory::createViewFromXML(QDomElement layoutElement)
{
Q_UNUSED(layoutElement);
Q_D(qSlicerSingletonViewFactory);
if (this->widget()->isVisible())
{
......
......@@ -505,7 +505,6 @@ void vtkMRMLMarkupsDisplayableManager::OnMRMLSliceNodeModifiedEvent()
while(it != this->Helper->MarkupsDisplayNodesToWidgets.end())
{
// we loop through all widgets
vtkMRMLMarkupsDisplayNode * markupsDisplayNode = (it->first);
vtkSlicerAbstractWidget* widget = (it->second);
widget->UpdateFromMRML(this->SliceNode, vtkCommand::ModifiedEvent);
if (widget->GetNeedToRender())
......
......@@ -352,7 +352,7 @@ void vtkSlicerCurveRepresentation2D::SetMarkupsNode(vtkMRMLMarkupsNode *markupsN
//----------------------------------------------------------------------
void vtkSlicerCurveRepresentation2D::CanInteractWithCurve(
const int displayPosition[2], const double worldPosition[3],
const int vtkNotUsed(displayPosition)[2], const double worldPosition[3],
int &foundComponentType, int &componentIndex, double &closestDistance2)
{
vtkMRMLSliceNode *sliceNode = this->GetSliceNode();
......
......@@ -290,7 +290,7 @@ void vtkSlicerCurveRepresentation3D::SetMarkupsNode(vtkMRMLMarkupsNode *markupsN
//----------------------------------------------------------------------
void vtkSlicerCurveRepresentation3D::CanInteractWithCurve(
const int displayPosition[2], const double worldPosition[3],
const int vtkNotUsed(displayPosition)[2], const double worldPosition[3],
int &foundComponentType, int &componentIndex, double &closestDistance2)
{
if (!this->MarkupsNode)
......
......@@ -505,7 +505,7 @@ void qSlicerModelsModuleWidget::setCurrentNodeFromSubjectHierarchyItem(vtkIdType
}
//---------------------------------------------------------------------------
void qSlicerModelsModuleWidget::onSubjectHierarchyItemModified(vtkObject* caller, void* callData)
void qSlicerModelsModuleWidget::onSubjectHierarchyItemModified(vtkObject* vtkNotUsed(caller), void* vtkNotUsed(callData))
{
Q_D(qSlicerModelsModuleWidget);
......
......@@ -2345,7 +2345,7 @@ std::string vtkSlicerSegmentationsModuleLogic::GetSafeFileName(std::string origi
// (same method as in qSlicerFileNameItemDelegate::fixupFileName)
std::string safeName("");
vtksys::RegularExpression regExp("[A-Za-z0-9\\ \\-\\_\\.\\(\\)\\$\\!\\~\\#\\'\\%\\^\\{\\}]");
for (int i=0; i<originalName.size(); ++i)
for (size_t i=0; i<originalName.size(); ++i)
{
std::string currentCharStr("");
currentCharStr += originalName[i];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment