Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Fix warnings in several headers #367

Merged
merged 3 commits into from
Feb 21, 2023
Merged

Fix warnings in several headers #367

merged 3 commits into from
Feb 21, 2023

Conversation

wmaxey
Copy link
Member

@wmaxey wmaxey commented Feb 17, 2023

MSVC is extremely pedantic with /Wall enabled so we'll skip that entirely.

@wmaxey
Copy link
Member Author

wmaxey commented Feb 17, 2023

This fixes NVIDIA/cccl#998. I made some effort to find out why that warning wasn't being issued in the first place, and it's because we use -Wno-unused-parameters to sink a ton of warnings across the test files themselves. This would be a pretty large fixup that can be done at a later time.

The actual fix for NVIDIA/cccl#998 on the other hand is to add the system header pragma to some of the files that need it. Specifically files that implement additional things on top of cuda/std/.

Comment on lines +40 to +44
if (NOT MSVC)
set(LIBCUDACXX_WARNING_LEVEL
"--compiler-options=-Wall \
--compiler-options=-Wextra")
endif()
Copy link
Collaborator

Choose a reason for hiding this comment

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

I am not too happy with this. That said, we can reenable them once we have a workaround in place

@wmaxey wmaxey merged commit a4690e8 into main Feb 21, 2023
@wmaxey wmaxey deleted the bugfix/warning_fixups branch February 21, 2023 18:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants