X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Futil%2Fu_atomic_test.c;h=7a77768c966fec1719231b729b2806119bbffe0c;hb=eac0ba7fc193cceccd953bc4726ceef750b18085;hp=939cfe445777d4d458d6e9b0bfafc226139815e4;hpb=b09f25428ff5e908aefc03b8f9931599c3afd6d2;p=mesa.git diff --git a/src/util/u_atomic_test.c b/src/util/u_atomic_test.c index 939cfe44577..7a77768c966 100644 --- a/src/util/u_atomic_test.c +++ b/src/util/u_atomic_test.c @@ -26,7 +26,7 @@ **************************************************************************/ -/* Force assertions, even on debug builds. */ +/* Force assertions, even on release builds. */ #undef NDEBUG @@ -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) \