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

Useless semicolons #826

Open
lahwaacz opened this issue Dec 28, 2022 · 8 comments
Open

Useless semicolons #826

lahwaacz opened this issue Dec 28, 2022 · 8 comments
Assignees
Labels
good first issue Good for newcomers. help wanted Request for input or help from the community thrust For all items related to Thrust.

Comments

@lahwaacz
Copy link

Compiling with -Wextra-semi shows some warnings due to unnecessary semicolons in Thrust code base:

/opt/cuda/include/thrust/iterator/detail/universal_categories.h:45:78: warning: extra ‘;’ after in-class function definition [-Wextra-semi]
   45 |   operator forward_host_iterator_tag () {return forward_host_iterator_tag();};
      |                                                                              ^
      |                                                                              -
/opt/cuda/include/thrust/iterator/detail/universal_categories.h:47:82: warning: extra ‘;’ after in-class function definition [-Wextra-semi]
   47 |   operator forward_device_iterator_tag () {return forward_device_iterator_tag();};
      |                                                                                  ^
      |                                                                                  -
/opt/cuda/include/thrust/iterator/detail/universal_categories.h:53:90: warning: extra ‘;’ after in-class function definition [-Wextra-semi]
   53 |   operator bidirectional_host_iterator_tag () {return bidirectional_host_iterator_tag();};
      |                                                                                          ^
      |                                                                                          -
/opt/cuda/include/thrust/iterator/detail/universal_categories.h:55:94: warning: extra ‘;’ after in-class function definition [-Wextra-semi]
   55 |   operator bidirectional_device_iterator_tag () {return bidirectional_device_iterator_tag();};
      |                                                                                              ^
      |                                                                                              -
/opt/cuda/include/thrust/iterator/detail/universal_categories.h:75:90: warning: extra ‘;’ after in-class function definition [-Wextra-semi]
   75 |   operator random_access_host_iterator_tag () {return random_access_host_iterator_tag();};
      |                                                                                          ^
      |                                                                                          -
/opt/cuda/include/thrust/iterator/detail/universal_categories.h:77:94: warning: extra ‘;’ after in-class function definition [-Wextra-semi]
   77 |   operator random_access_device_iterator_tag () {return random_access_device_iterator_tag();};
      |                                                                                              ^
      |                                                                                              -
In file included from /opt/cuda/include/thrust/detail/allocator/temporary_allocator.inl:20,
                 from /opt/cuda/include/thrust/detail/allocator/temporary_allocator.h:83,
                 from /opt/cuda/include/thrust/detail/temporary_array.h:41,
                 from /opt/cuda/include/thrust/system/detail/generic/scan_by_key.inl:26,
                 from /opt/cuda/include/thrust/system/detail/generic/scan_by_key.h:142,
                 from /opt/cuda/include/thrust/detail/scan.inl:27,
                 from /opt/cuda/include/thrust/scan.h:1560,
                 from /opt/cuda/include/thrust/system/detail/generic/reduce_by_key.inl:37,
                 from /opt/cuda/include/thrust/system/detail/generic/reduce_by_key.h:87,
                 from /opt/cuda/include/thrust/detail/reduce.inl:28,
                 from /opt/cuda/include/thrust/reduce.h:781:
/opt/cuda/include/thrust/system/detail/bad_alloc.h:44:48: warning: extra ‘;’ after in-class function definition [-Wextra-semi]
   44 |     inline virtual ~bad_alloc(void) throw () {};
      |                                                ^
      |                                                -
@jrhemstad jrhemstad added the thrust For all items related to Thrust. label Feb 22, 2023
@jarmak-nv jarmak-nv transferred this issue from NVIDIA/thrust Nov 8, 2023
@lahwaacz
Copy link
Author

lahwaacz commented Jan 3, 2024

A year later, is there any progress?

@miscco miscco added good first issue Good for newcomers. help wanted Request for input or help from the community labels Jan 3, 2024
@miscco
Copy link
Collaborator

miscco commented Jan 3, 2024

Unfortunately not.

Due to time constraints we have to prioritize our workload. I am marking this as a good first issue tough, as this does not seem like an issue that needs a maintainer to fix.

@eriktedhamre
Copy link
Contributor

Hello, I'm interested in contributing and feel like this is a good issue. I do however feel like I'm missing a lot of information that is taken for granted. Which makes it hard to start. Any tips?

I have read the various .md files.

@jrhemstad
Copy link
Collaborator

A year later, is there any progress?

As of #531, users should no longer see warnings from CCCL headers. Can you try as of the latest release?

@lahwaacz
Copy link
Author

@jrhemstad Was it actually released? #531 was merged in October, but the last release is from September...

Also, when will this appear as part of a CUDA release?

@vrajvaghela89
Copy link

"Hi, I'd like to work on this issue. Could you assign it to me?"

@miscco
Copy link
Collaborator

miscco commented Dec 19, 2024

@vrajvaghela89 we usually do not assign issues to external contributors, especially such minor things where people can just work on

@bernhardmgruber
Copy link
Contributor

"Hi, I'd like to work on this issue. Could you assign it to me?"

Just send in a PR, I will happily review it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers. help wanted Request for input or help from the community thrust For all items related to Thrust.
Projects
Status: No status
Development

No branches or pull requests

6 participants