From d5cc57909f518a8e204e5fbf3d439418e69beb08 Mon Sep 17 00:00:00 2001 From: Andrew Myers Date: Thu, 25 Jan 2024 17:58:13 -0800 Subject: [PATCH] Follow-on to #3701 (#3702) The parenthesis are not needed and some compilers warn about them. The proposed changes: - [x] fix a bug or incorrect behavior in AMReX - [ ] add new capabilities to AMReX - [ ] changes answers in the test suite to more than roundoff level - [ ] are likely to significantly affect the results of downstream AMReX users - [ ] include documentation in the code and/or rst files, if appropriate --- Src/Base/AMReX_Extension.H | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Base/AMReX_Extension.H b/Src/Base/AMReX_Extension.H index c02adcdff7..8a77defed8 100644 --- a/Src/Base/AMReX_Extension.H +++ b/Src/Base/AMReX_Extension.H @@ -138,9 +138,9 @@ #define AMREX_TO_STRING(X) AMREX_TO_STRING_HELPER(X) #if defined(__clang__) || defined(__CUDACC__) || defined(__HIP__) || defined(__INTEL_CLANG_COMPILER) -#define AMREX_UNROLL_LOOP(n) _Pragma(AMREX_TO_STRING(unroll (n))) +#define AMREX_UNROLL_LOOP(n) _Pragma(AMREX_TO_STRING(unroll n)) #elif defined(__GNUC__) -#define AMREX_UNROLL_LOOP(n) _Pragma(AMREX_TO_STRING(GCC unroll (n))) +#define AMREX_UNROLL_LOOP(n) _Pragma(AMREX_TO_STRING(GCC unroll n)) #else #define AMREX_UNROLL_LOOP(n) #endif