silence unrecognized pragma warnings

This commit is contained in:
Axel Kohlmeyer 2022-10-24 15:42:17 -04:00
parent a7d55526e8
commit 0146a19ed3
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 2 additions and 1 deletions

View File

@ -291,8 +291,9 @@
#endif
// Enable minimal optimizations for more compact code in debug mode.
// LAMMPS customization: exclude __NVCC__ in addition to __NVCOMPILER for nvcc from CUDA toolkit
FMT_GCC_PRAGMA("GCC push_options")
#if !defined(__OPTIMIZE__) && !defined(__NVCOMPILER)
#if !defined(__OPTIMIZE__) && !defined(__NVCOMPILER) && !defined(__NVCC__)
FMT_GCC_PRAGMA("GCC optimize(\"Og\")")
#endif