aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/util/u_atomic_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/src/util/u_atomic_test.c')
-rw-r--r--mesalib/src/util/u_atomic_test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mesalib/src/util/u_atomic_test.c b/mesalib/src/util/u_atomic_test.c
index 939cfe445..7844f6162 100644
--- a/mesalib/src/util/u_atomic_test.c
+++ b/mesalib/src/util/u_atomic_test.c
@@ -36,6 +36,11 @@
#include "u_atomic.h"
+#ifdef _MSC_VER
+#pragma warning( disable : 28112 ) /* Accessing a local variable via an Interlocked function */
+#pragma warning( disable : 28113 ) /* A variable which is accessed via an Interlocked function must always be accessed via an Interlocked function */
+#endif
+
/* Test only assignment-like operations, which are supported on all types */
#define test_atomic_assign(type, ones) \