aboutsummaryrefslogtreecommitdiff
path: root/sp/src/public/tier0/annotations.h
diff options
context:
space:
mode:
Diffstat (limited to 'sp/src/public/tier0/annotations.h')
-rw-r--r--sp/src/public/tier0/annotations.h38
1 files changed, 0 insertions, 38 deletions
diff --git a/sp/src/public/tier0/annotations.h b/sp/src/public/tier0/annotations.h
index f81cea32..25537821 100644
--- a/sp/src/public/tier0/annotations.h
+++ b/sp/src/public/tier0/annotations.h
@@ -13,44 +13,6 @@
// Include the annotation header file.
#include <sal.h>
-// /Analyze warnings can only be suppressed when using a compiler that supports them, which VS 2010
-// Professional does not.
-
-// We don't care about these warnings because they are bugs that can only occur during resource
-// exhaustion or other unexpected API failure, which we are nowhere near being able to handle.
-#pragma warning(disable : 6308) // warning C6308: 'realloc' might return null pointer: assigning null pointer to 's_ppTestCases', which is passed as an argument to 'realloc', will cause the original memory block to be leaked
-#pragma warning(disable : 6255) // warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead
-#pragma warning(disable : 6387) // warning C6387: 'argument 1' might be '0': this does not adhere to the specification for the function 'GetProcAddress'
-#pragma warning(disable : 6309) // warning C6309: Argument '1' is null: this does not adhere to function specification of 'GetProcAddress'
-#pragma warning(disable : 6011) // warning C6011: Dereferencing NULL pointer 'm_ppTestCases'
-#pragma warning(disable : 6211) // warning C6211: Leaking memory 'newKeyValue' due to an exception. Consider using a local catch block to clean up memory
-#pragma warning(disable : 6031) // warning C6031: Return value ignored: '_getcwd'
-
-// These warnings are because /analyze doesn't like our use of constants, especially things like IsPC()
-#pragma warning(disable : 6326) // warning C6326: Potential comparison of a constant with another constant
-#pragma warning(disable : 6239) // warning C6239: (<non-zero constant> && <expression>) always evaluates to the result of <expression>. Did you intend to use the bitwise-and operator?
-#pragma warning(disable : 6285) // warning C6285: (<non-zero constant> || <non-zero constant>) is always a non-zero constant. Did you intend to use the bitwise-and operator?
-#pragma warning(disable : 6237) // warning C6237: (<zero> && <expression>) is always zero. <expression> is never evaluated and might have side effects
-#pragma warning(disable : 6235) // warning C6235: (<non-zero constant> || <expression>) is always a non-zero constant
-#pragma warning(disable : 6240) // warning C6240: (<expression> && <non-zero constant>) always evaluates to the result of <expression>. Did you intend to use the bitwise-and operator?
-
-// These warnings aren't really important:
-#pragma warning(disable : 6323) // warning C6323: Use of arithmetic operator on Boolean type(s)
-
-// Miscellaneous other /analyze warnings. We should consider fixing these at some point.
-//#pragma warning(disable : 6204) // warning C6204: Possible buffer overrun in call to 'memcpy': use of unchecked parameter 'src'
-//#pragma warning(disable : 6262) // warning C6262: Function uses '16464' bytes of stack: exceeds /analyze:stacksize'16384'. Consider moving some data to heap
-// This is a serious warning. Don't suppress it.
-//#pragma warning(disable : 6263) // warning C6263: Using _alloca in a loop: this can quickly overflow stack
-// 6328 is also used for passing __int64 to printf when int is expected so we can't suppress it.
-//#pragma warning(disable : 6328) // warning C6328: 'char' passed as parameter '1' when 'unsigned char' is required in call to 'V_isdigit'
-// /analyze doesn't like GCOMPILER_ASSERT's implementation of compile-time asserts
-#pragma warning(disable : 6326) // warning C6326: Potential comparison of a constant with another constant
-#pragma warning(disable : 6335) // warning C6335: Leaking process information handle 'pi.hThread'
-#pragma warning(disable : 6320) // warning C6320: Exception-filter expression is the constant EXCEPTION_EXECUTE_HANDLER. This might mask exceptions that were not intended to be handled
-#pragma warning(disable : 6250) // warning C6250: Calling 'VirtualFree' without the MEM_RELEASE flag might free memory but not address descriptors (VADs). This causes address space leaks
-#pragma warning(disable : 6384) // ientity2_class_h_schema_gen.cpp(76): warning C6384: Dividing sizeof a pointer by another value
-
// For temporarily suppressing warnings -- the warnings are suppressed for the next source line.
#define ANALYZE_SUPPRESS(wnum) __pragma(warning(suppress: wnum))
#define ANALYZE_SUPPRESS2(wnum1, wnum2) __pragma(warning(supress: wnum1 wnum2))