Cleanup warnings with nvhpc/21.9. (#2582)

* Cleanup warnings with nvhpc/21.9.

* Move __NVCOMPILER check.

* Be more explicit.

* Immediately executed lambda.

* Fix shadowing warning.
This commit is contained in:
Olli Lupton
2021-11-05 12:17:11 -07:00
committed by GitHub
parent 812733cc96
commit e67f92c55c
2 changed files with 10 additions and 6 deletions
+2 -1
View File
@@ -24,7 +24,8 @@
# define FMT_CLANG_VERSION 0
#endif
#if defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER)
#if defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER) && \
!defined(__NVCOMPILER)
# define FMT_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
#else
# define FMT_GCC_VERSION 0