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

Repeated type definition of cl_kernel_sub_group_info #2

Closed
nunofachada opened this issue May 31, 2016 · 2 comments
Closed

Repeated type definition of cl_kernel_sub_group_info #2

nunofachada opened this issue May 31, 2016 · 2 comments

Comments

@nunofachada
Copy link
Contributor

nunofachada commented May 31, 2016

In the OpenCL 2.1 headers, the type definition of cl_kernel_sub_group_info is performed twice:

  1. Line 97 of cl.h
  2. Line 323 of cl_ext.h

This causes a warning when compiling with clang (3.6/3.8):

./ocl/2.1/CL/cl_ext.h:323:18: warning: redefinition of typedef 'cl_kernel_sub_group_info' is a C11 feature
      [-Wtypedef-redefinition]
typedef cl_uint  cl_kernel_sub_group_info;
                 ^
./ocl/2.1/CL/cl.h:97:29: note: previous definition is here
typedef cl_uint             cl_kernel_sub_group_info;
nunofachada added a commit to nunofachada/OpenCL-Headers that referenced this issue Jun 12, 2016
@jrprice
Copy link
Contributor

jrprice commented Jun 14, 2016

Thanks for raising this, this should be fixed now in the opencl21 and master branches. Please verify that this resolves the issue for you.

@nunofachada
Copy link
Contributor Author

Yes, Clang doesn't complain anymore. Thanks.

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