Skip to content

Commit bfe21de

Browse files
authored
Merge pull request openigtlink#68 from jcfr/fix-misc-warnings
Fix misc warnings
2 parents 3f0af42 + b8f79ce commit bfe21de

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

MRML/vtkIGTLToMRMLBase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class VTK_SLICER_OPENIGTLINKIF_MODULE_MRML_EXPORT vtkIGTLToMRMLBase : public vtk
101101
// Description:
102102
// Functions to de-serialize (unpack) the OpenIGTLink message and store in the class instance.
103103
// The de-serialized message must be deleted in IGTLToMRML()
104-
virtual int UnpackIGTLMessage(igtl::MessageBase::Pointer buffer) { return 1; };
104+
virtual int UnpackIGTLMessage(igtl::MessageBase::Pointer vtkNotUsed(buffer)) { return 1; };
105105

106106
// Description:
107107
// Functions to convert OpenIGTLink message to MRML node.

MRML/vtkMRMLIGTLConnectorNode.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ int vtkMRMLIGTLConnectorNode::ReceiveController()
840840
vtkIGTLToMRMLBase* converter = GetConverterByIGTLDeviceType(headerMsg->GetDeviceType());
841841
if (converter)
842842
{
843-
for(int i = 0; i < converter->GetAllMRMLNames().size(); i++)
843+
for(unsigned int i = 0; i < converter->GetAllMRMLNames().size(); i++)
844844
{
845845
const char* mrmlName = converter->GetAllMRMLNames()[i].c_str();
846846
if (strcmp(node->GetNodeTagName(), mrmlName) == 0)

0 commit comments

Comments
 (0)