3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-15 05:18:44 +00:00

Fixed warning message about unused lock when OpenMP is not available.

This commit is contained in:
Christoph M. Wintersteiger 2015-05-22 11:59:31 +01:00
parent 54cde7cabb
commit ffbbf08d20

View file

@ -27,7 +27,9 @@ Revision History:
typedef unsigned int mpn_digit;
class mpn_manager {
#ifndef _NO_OMP
omp_nest_lock_t m_lock;
#endif
#define MPN_BEGIN_CRITICAL() omp_set_nest_lock(&m_lock);
#define MPN_END_CRITICAL() omp_unset_nest_lock(&m_lock);