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

nvhpc: lots of warnings from 'pragma GCC system_header' #106

Open
cwsmith opened this issue Jul 5, 2024 · 0 comments
Open

nvhpc: lots of warnings from 'pragma GCC system_header' #106

cwsmith opened this issue Jul 5, 2024 · 0 comments

Comments

@cwsmith
Copy link

cwsmith commented Jul 5, 2024

On ALCF Polaris using the nvhpc 23.9.0 compilers, this macro:

#if defined(_MSC_VER)
#define OMEGA_H_SYSTEM_HEADER
#elif defined(__clang__)
#define OMEGA_H_SYSTEM_HEADER OMEGA_H_PRAGMA(clang system_header)
#elif defined(__GNUC__)
#define OMEGA_H_SYSTEM_HEADER OMEGA_H_PRAGMA(GCC system_header)
#endif

results in pragma GCC system_header being added to a handful of header files. The compiler/pre processor outputs the following warning:

omega_h/src/Omega_h_mpi.h(8): warning #2320-D: #pragma GCC system_header cannot be used in the primary source file
  _Pragma("GCC system_header")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant