Procházet zdrojové kódy

Disable more noisy OACR warnings

Richard Cobbe před 8 roky
rodič
revize
79cc544f32
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      lib/Common/Warnings.h

+ 4 - 0
lib/Common/Warnings.h

@@ -38,7 +38,11 @@
 #pragma warning(disable:28112)      // A variable (processNativeCodeSize) which is accessed via an Interlocked function must always be accessed via an Interlocked function. See line 1024:  It is not always safe to access a variable which is accessed via the Interlocked* family of functions in any other way.
 #pragma warning(disable:28159)      // Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days.  Code that does not take that into account can loop indefinitely.  GetTickCount64 operates on 64 bit values and does not have that problem
 
+#pragma warning(disable:6235)       // Logical OR with non-zero constant on the left: 1 || <expr>
 #pragma warning(disable:6236)       // Logical-OR with non-zero constant, e.g., <expr> || 1.  We end up with a lot of these in release builds because certain macros (notably CONFIG_FLAG) expand to compile-time constants in release builds and not in debug builds.
+#pragma warning(disable:6327)       // False constant expr on left side of AND, so right side never evaluated for effects -- e.g., 0 && <expr>
+#pragma warning(disable:6239)       // NONZEROLOGICALAND:  1 && <expr> ?
+#pragma warning(disable:6240)       // LOGICALANDNONZERO:  <expr> && 1 ?
 #pragma warning(disable:25037)      // True constant expr in AND, e.g., <expr> && 1.
 #pragma warning(disable:25038)      // False constant expr in AND, e.g., <expr> && 0.
 #pragma warning(disable:25039)      // True Constant Expr in OR.  Seems to be a duplicate of 6236.