Skip to content

Commit 3c03246

Browse files
author
kaleseed
committed
Windows VS 2022 compiler complain this macro, adding a semi-colon solves the building error.
1 parent 067a7e5 commit 3c03246

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Common/include/parallelization/omp_structure.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,14 +189,14 @@ void omp_finalize();
189189
*/
190190

191191
#define BEGIN_SU2_OMP_SAFE_GLOBAL_ACCESS \
192-
SU2_OMP_BARRIER \
192+
SU2_OMP_BARRIER; \
193193
if (omp_in_parallel()) AD::StartNoSharedReading(); \
194194
SU2_OMP_MASTER
195195

196196
#define END_SU2_OMP_SAFE_GLOBAL_ACCESS \
197197
END_SU2_OMP_MASTER \
198198
if (omp_in_parallel()) AD::EndNoSharedReading(); \
199-
SU2_OMP_BARRIER
199+
SU2_OMP_BARRIER;
200200

201201
#define SU2_OMP_SAFE_GLOBAL_ACCESS(...) BEGIN_SU2_OMP_SAFE_GLOBAL_ACCESS{__VA_ARGS__} END_SU2_OMP_SAFE_GLOBAL_ACCESS
202202

0 commit comments

Comments
 (0)