Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings with ITKv5.1 + clang11 #18

Open
hjmjohnson opened this issue May 19, 2020 · 2 comments
Open

Warnings with ITKv5.1 + clang11 #18

hjmjohnson opened this issue May 19, 2020 · 2 comments

Comments

@hjmjohnson
Copy link
Member

In file included from /user/iibi/johnsonhj/src/ITK/Modules/Remote/BioCell/src/itkBioGene.cxx:19:
/user/iibi/johnsonhj/src/ITK/Modules/Remote/BioCell/include/itkBioGene.h:52:35: warning: anonymous non-C-compatible type given name for linkage purposes by alias declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
using ControlDomainType = struct
^
ControlDomainType
/user/iibi/johnsonhj/src/ITK/Modules/Remote/BioCell/include/itkBioGene.h:52:29: note: type is not C-compatible due to this member declaration
using ControlDomainType = struct
^~~~~~
/user/iibi/johnsonhj/src/ITK/Modules/Remote/BioCell/include/itkBioGene.h:52:9: note: type is given name 'ControlDomainType' for linkage purposes by this alias declaration
using ControlDomainType = struct
^
1 warning generated.
[289/3196] Building CXX object Modules/Remote/BioCell/test/CMakeFiles/BioCellTestDriver.dir/itkBioGeneTest.cxx.o
In file included from /user/iibi/johnsonhj/src/ITK/Modules/Remote/BioCell/test/itkBioGeneTest.cxx:21:
/user/iibi/johnsonhj/src/ITK/Modules/Remote/BioCell/include/itkBioGene.h:52:35: warning: anonymous non-C-compatible type given name for linkage purposes by alias declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
using ControlDomainType = struct
^
ControlDomainType
/user/iibi/johnsonhj/src/ITK/Modules/Remote/BioCell/include/itkBioGene.h:52:29: note: type is not C-compatible due to this member declaration
using ControlDomainType = struct
^~~~~~
/user/iibi/johnsonhj/src/ITK/Modules/Remote/BioCell/include/itkBioGene.h:52:9: note: type is given name 'ControlDomainType' for linkage purposes by this alias declaration
using ControlDomainType = struct
^
1 warning generated.
[314/3196] Building CXX object Modules/Remote/BioCell/CMakeFiles/BioCellHeaderTest1.dir/test/BioCellHeaderTest1.cxx.o
In file included from Modules/Remote/BioCell/test/BioCellHeaderTest1.cxx:28:
/user/iibi/johnsonhj/src/ITK/Modules/Remote/BioCell/include/itkBioGene.h:52:35: warning: anonymous non-C-compatible type given name for linkage purposes by alias declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
using ControlDomainType = struct
^
ControlDomainType
/user/iibi/johnsonhj/src/ITK/Modules/Remote/BioCell/include/itkBioGene.h:52:29: note: type is not C-compatible due to this member declaration
using ControlDomainType = struct
^~~~~~
/user/iibi/johnsonhj/src/ITK/Modules/Remote/BioCell/include/itkBioGene.h:52:9: note: type is given name 'ControlDomainType' for linkage purposes by this alias declaration
using ControlDomainType = struct
^

@hjmjohnson
Copy link
Member Author

@mseng10 Please fix this when addressing other remote issues.

@mseng10
Copy link
Contributor

mseng10 commented May 19, 2020

@hjmjohnson I am having issues reproducing this error. I am using ITKv5.1 and clang11. I was able to reproduce the other clang error for BSplineGradient.

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

No branches or pull requests

2 participants