Skip to content

COMP: Wrapping of VectorContainer and DefaultStaticMeshTraits#442

Merged
thewtex merged 1 commit intoInsightSoftwareConsortium:masterfrom
thewtex:wrapping-warnings-vectorcontainer
Jan 25, 2019
Merged

COMP: Wrapping of VectorContainer and DefaultStaticMeshTraits#442
thewtex merged 1 commit intoInsightSoftwareConsortium:masterfrom
thewtex:wrapping-warnings-vectorcontainer

Conversation

@thewtex
Copy link
Copy Markdown
Member

@thewtex thewtex commented Jan 24, 2019

Address the runtime warnings:

Template itk::VectorContainer<unsignedchar,signedshort>
already defined as <class 'itkVectorContainerPython.itkVectorContainerUCSS'>
is redefined as <class 'itkVectorContainerPython.itkVectorContainerUCSS'>
Warning: template already defined 'itk::VectorContainer<unsignedchar,signedshort>'
Template itk::VectorContainer<unsignedlonglong,unsignedchar>
already defined as <class 'itkVectorContainerPython.itkVectorContainerULLUC'>
is redefined as <class 'itkVectorContainerPython.itkVectorContainerULLUC'>
Warning: template already defined 'itk::VectorContainer<unsignedlonglong,unsignedchar>'
Template itk::VectorContainer<unsignedchar,unsignedchar>
already defined as <class 'itkVectorContainerPython.itkVectorContainerUCUC'>
is redefined as <class 'itkVectorContainerPython.itkVectorContainerUCUC'>
Warning: template already defined 'itk::VectorContainer<unsignedchar,unsignedchar>'
Warning: Unknown parameter 'itk::DefaultStaticMeshTraits< double,2,2,double,double,double >' in template 'itk::PointSet'
Warning: Unknown parameter 'itk::DefaultStaticMeshTraits< double,3,3,double,double,double >' in template 'itk::PointSet'

by removing duplicate instantiations and adding the missing ones.

This is a follow-up to 443955f

Address the runtime warnings:

  Template itk::VectorContainer<unsignedchar,signedshort>
 already defined as <class 'itkVectorContainerPython.itkVectorContainerUCSS'>
 is redefined as <class 'itkVectorContainerPython.itkVectorContainerUCSS'>
Warning: template already defined 'itk::VectorContainer<unsignedchar,signedshort>'
Template itk::VectorContainer<unsignedlonglong,unsignedchar>
 already defined as <class 'itkVectorContainerPython.itkVectorContainerULLUC'>
 is redefined as <class 'itkVectorContainerPython.itkVectorContainerULLUC'>
Warning: template already defined 'itk::VectorContainer<unsignedlonglong,unsignedchar>'
Template itk::VectorContainer<unsignedchar,unsignedchar>
 already defined as <class 'itkVectorContainerPython.itkVectorContainerUCUC'>
 is redefined as <class 'itkVectorContainerPython.itkVectorContainerUCUC'>
Warning: template already defined 'itk::VectorContainer<unsignedchar,unsignedchar>'
Warning: Unknown parameter 'itk::DefaultStaticMeshTraits< double,2,2,double,double,double >' in template 'itk::PointSet'
Warning: Unknown parameter 'itk::DefaultStaticMeshTraits< double,3,3,double,double,double >' in template 'itk::PointSet'

by removing duplicate instantiations and adding the missing ones.

This is a follow-up to 443955f
itk_wrap_template("${ITKM_IT}${ITKM_${t}}" "${ITKT_IT},${ITKT_${t}}")
itk_wrap_template("${ITKM_UC}${ITKM_${t}}" "${ITKT_UC},${ITKT_${t}}")
# These are wrapped below with "vectypes"
if(NOT ${t} STREQUAL "UC")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is "UC" not wrapped? I don't see anywhere else where it is wrapped in this file.

Copy link
Copy Markdown
Member Author

@thewtex thewtex Jan 25, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UC is wrapped here: https://github.com/InsightSoftwareConsortium/ITK/pull/442/files#diff-f6ed0a76b0d14eeb12481dde620b2ef6L30

If it was not wrapped, a build error or warning would result.

@thewtex
Copy link
Copy Markdown
Member Author

thewtex commented Jan 25, 2019

CircleCI warnings were addressed by @phcerdan in #446 . Merging to prepare for ITK 5 RC 1!

@thewtex thewtex merged commit a4e4310 into InsightSoftwareConsortium:master Jan 25, 2019
@thewtex thewtex deleted the wrapping-warnings-vectorcontainer branch January 25, 2019 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants