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

Suppress warnings charm++ module headers #298

Merged

Conversation

mabruzzo
Copy link
Contributor

This PR builds directly on PR #272 (it shouldn't be merged until afterwards).

This PR takes steps to suppress compiler warnings in the header files generated by charmc from .ci (these warnings are really just noise -- we can't do much about them without altering charm++).

This is essentially done by telling the compiler to treat them like system headers with the (i.e. passing the -isystem flag to gcc or clang -- this may not suppress warnings on all compilers, but it's a good start)

In more detail, we now:

  1. place the headers generated by charmc from .ci files into their own sub-directories -- a subdirectory is automatically made for headers generated from the ci files from the Cello-layer and another is created for the headers generated from the ci file from the Enzo-layer.
  2. label all headers in these subdirectories as system-headers.

@mabruzzo mabruzzo added the build-system Issue/PR associated with the build system label Mar 23, 2023
This lets us greatly reduce the number of manually listed items in target_include_directory. It's also an important step towards untangling the giant knot of dependencies (that's important for speeding up compilation)
@mabruzzo mabruzzo force-pushed the suppress-warnings-charm++-module-headers branch from cc5126a to f07c973 Compare March 23, 2023 18:10
Copy link
Contributor

@gregbryan gregbryan left a comment

Choose a reason for hiding this comment

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

A couple of typos that need to be fixed, otherwise good.

cmake/charm.cmake Outdated Show resolved Hide resolved
cmake/charm.cmake Outdated Show resolved Hide resolved
@mabruzzo
Copy link
Contributor Author

This is one of the PRs where we decided that we only needed 1 approval and Greg signed off on it (even though he never explicitly hit approve), so I'm merging.

@mabruzzo mabruzzo merged commit 622eb7a into enzo-project:main Feb 20, 2024
7 checks passed
@mabruzzo mabruzzo deleted the suppress-warnings-charm++-module-headers branch February 20, 2024 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-system Issue/PR associated with the build system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants