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

Always check for __attribute__() in CMake #4980

Merged

Conversation

derobins
Copy link
Member

The CMake compiler checks skip checking for things like attribute() on Windows. Now that Visual Studio can use clang, we should be checking for this, even on non-MinGW Windows.

The CMake compiler checks skip checking for things like __attribute__()
on Windows. Now that Visual Studio can use clang, we should be checking
for this, even on non-MinGW Windows.
@derobins derobins added Priority - 2. Medium ⏹ It would be nice to have this in the next release Component - Build CMake, Autotools Type - Improvement Improvements that don't add a new feature or functionality Merge - To 2.0 labels Oct 19, 2024
@derobins
Copy link
Member Author

This should dramatically reduce the number of warnings we see in the Windows builds in CDash since we use attribute() to suppress fall-through, unused parameters, etc.

@derobins derobins merged commit ee6c2ee into HDFGroup:develop Oct 20, 2024
60 checks passed
qkoziol pushed a commit to qkoziol/hdf5 that referenced this pull request Oct 23, 2024
The CMake compiler checks skip checking for things like __attribute__()
on Windows. Now that Visual Studio can use clang, we should be checking
for this, even on non-MinGW Windows.
brtnfld pushed a commit to brtnfld/hdf5 that referenced this pull request Oct 31, 2024
The CMake compiler checks skip checking for things like __attribute__()
on Windows. Now that Visual Studio can use clang, we should be checking
for this, even on non-MinGW Windows.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Build CMake, Autotools Priority - 2. Medium ⏹ It would be nice to have this in the next release Type - Improvement Improvements that don't add a new feature or functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants