Skip to content

STYLE: Remove warnings for template already defined #2083

Closed

Description

@Leengit

Description

The following build and test

cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DBUILD_TESTING:BOOL=ON \
    -DITK_WRAP_PYTHON:BOOL=ON \
    -DITK_WRAP_complex_double:BOOL=ON -DITK_WRAP_complex_float:BOOL=ON \
    -DITK_WRAP_covariant_vector_double:BOOL=ON -DITK_WRAP_covariant_vector_float:BOOL=ON \
    -DITK_WRAP_double:BOOL=ON -DITK_WRAP_float:BOOL=ON \
    -DITK_WRAP_rgba_unsigned_char:BOOL=ON -DITK_WRAP_rgba_unsigned_short:BOOL=ON \
    -DITK_WRAP_rgb_unsigned_char:BOOL=ON -DITK_WRAP_rgb_unsigned_short:BOOL=ON \
    -DITK_WRAP_signed_char:BOOL=ON -DITK_WRAP_signed_long_long:BOOL=ON \
    -DITK_WRAP_signed_short:BOOL=ON -DITK_WRAP_unsigned_char:BOOL=ON \
    -DITK_WRAP_unsigned_long_long:BOOL=ON -DITK_WRAP_unsigned_short:BOOL=ON \
    -DITK_WRAP_vector_double:BOOL=ON -DITK_WRAP_vector_float:BOOL=ON \
    ~/git/ITK
cmake --build .
ctest -V

produces ctest warnings Warning: template already defined for the following templates

itk::CastImageFilter<itk::Image<unsignedlonglong,2>,itk::Image<signedchar,2>>
itk::CastImageFilter<itk::Image<unsignedlonglong,2>,itk::Image<signedshort,2>>
itk::CastImageFilter<itk::Image<unsignedlonglong,2>,itk::Image<unsignedchar,2>>
itk::CastImageFilter<itk::Image<unsignedlonglong,2>,itk::Image<unsignedlonglong,2>>
itk::CastImageFilter<itk::Image<unsignedlonglong,2>,itk::Image<unsignedshort,2>>
itk::CastImageFilter<itk::Image<unsignedlonglong,3>,itk::Image<signedchar,3>>
itk::CastImageFilter<itk::Image<unsignedlonglong,3>,itk::Image<signedshort,3>>
itk::CastImageFilter<itk::Image<unsignedlonglong,3>,itk::Image<unsignedchar,3>>
itk::CastImageFilter<itk::Image<unsignedlonglong,3>,itk::Image<unsignedlonglong,3>>
itk::CastImageFilter<itk::Image<unsignedlonglong,3>,itk::Image<unsignedshort,3>>
itk::PyBuffer<itk::Image<itk::CovariantVector<double,2>,2>>
itk::PyBuffer<itk::Image<itk::CovariantVector<double,2>,3>>
itk::PyBuffer<itk::Image<itk::CovariantVector<double,3>,2>>
itk::PyBuffer<itk::Image<itk::CovariantVector<double,3>,3>>
itk::PyBuffer<itk::Image<itk::CovariantVector<double,4>,2>>
itk::PyBuffer<itk::Image<itk::CovariantVector<double,4>,3>>
itk::PyBuffer<itk::Image<itk::Vector<double,2>,2>>
itk::PyBuffer<itk::Image<itk::Vector<double,2>,3>>
itk::PyBuffer<itk::Image<itk::Vector<double,3>,2>>
itk::PyBuffer<itk::Image<itk::Vector<double,3>,3>>
itk::PyBuffer<itk::Image<itk::Vector<double,4>,2>>
itk::PyBuffer<itk::Image<itk::Vector<double,4>,3>>

Expected coding style

These shouldn't occur. Instead a single *.wrap file should be wrapping each of these templates.

Actual coding style

Versions

5.2.0

Activity

  1. added
    type:Style
    on Oct 31, 2020
  2. thewtex commented on Jan 29, 2021

    @thewtex
    Member

    @Leengit has this issue been addressed?

  3. thewtex commented on Feb 2, 2021

    @thewtex
    Member

    Per #2276, can this be closed?

  4. Leengit commented on Feb 2, 2021

    @Leengit
    ContributorAuthor

    Needs more ... working.

  5. Leengit commented on Feb 3, 2021

    @Leengit
    ContributorAuthor

    This issue can be closed.

  6. dzenanz commented on Feb 3, 2021

    @dzenanz
    Member

    Don't you have permission to close it yourself?

  7. Leengit commented on Feb 3, 2021

    @Leengit
    ContributorAuthor

    Well, yes. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:Style

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions