aboutsummaryrefslogtreecommitdiff
path: root/C/Compiler.h
diff options
context:
space:
mode:
authorIgor Pavlov <87184205+ip7z@users.noreply.github.com>2026-09-04 00:00:00 +0000
committerIgor Pavlov <87184205+ip7z@users.noreply.github.com>2026-09-04 12:17:40 +0500
commit0766b733fe3e06dd2a7f9a3cfbf2108ac73abd17 (patch)
tree3a8ca8ef8e855c41476499484ae3f3596e842ac2 /C/Compiler.h
parentf9d78aff31a5f2521ae7ddbdc97c4a8855808959 (diff)
download7zip-0766b733fe3e06dd2a7f9a3cfbf2108ac73abd17.tar.gz
7zip-0766b733fe3e06dd2a7f9a3cfbf2108ac73abd17.tar.bz2
7zip-0766b733fe3e06dd2a7f9a3cfbf2108ac73abd17.zip
Diffstat (limited to 'C/Compiler.h')
-rw-r--r--C/Compiler.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/C/Compiler.h b/C/Compiler.h
index c06b883..707e46d 100644
--- a/C/Compiler.h
+++ b/C/Compiler.h
@@ -125,6 +125,36 @@ typedef void (*Z7_void_Function)(void);
125#pragma warning(disable : 4464) // relative include path contains '..' 125#pragma warning(disable : 4464) // relative include path contains '..'
126#endif 126#endif
127 127
128// #define Z7_ANALYZE_MODE
129#if defined(Z7_ANALYZE_MODE) // && defined(Z7_MSC_VER_ORIGINAL)
130// for -analyze switch:
131#if _MSC_VER >= 1900
132#pragma warning(disable : 6001) // Using uninitialized memory 'ps'.
133#pragma warning(disable : 6031) // Return value ignored: 'CoInitialize'
134#pragma warning(disable : 6553) // The annotation for function 'RegOpenKeyExW' on _Param_(3) does not apply to a value type.
135#pragma warning(disable : 28159) // Random.cpp(21) : Consider using 'GetTickCount64' instead of 'GetTickCount'
136#pragma warning(disable : 28160) // ProcessUtils.h(92) : Error annotation: Passing MEM_RELEASE and a non-zero dwSize parameter to VirtualFree is not allowed. This results in the failure of this call
137#pragma warning(disable : 28251) // Inconsistent annotation for 'WinMain': this instance has no annotations. See c:\program files (x86)\windows kits\10\include\10.0.26100.0\um\winbase.h(1062).
138#pragma warning(disable : 28286) // um\consoleapi.h(236) : For function 'ReadConsoleW', error near the end of 'SAL_readableTo(byteCount(*__formal(3,lpNumberOfCharsRead) * sizeof(TCHAR%)))'.
139#pragma warning(disable : 28301) // No annotations for first declaration of 'PNTSTATUS'. See c:\program files (x86)\windows kits\10\include\10.0.26100.0\shared\bcrypt.h(40).
140#endif
141#if _MSC_VER >= 1600
142#pragma warning(disable : 6011) // Dereferencing NULL pointer 'p->IsDirs'
143#pragma warning(disable : 6255) // `_alloca` indicates failure by raising a stack overflow exception. Consider using _malloca instead.
144#pragma warning(disable : 6258) // Using TerminateThread does not allow proper thread clean up.
145// #pragma warning(disable : 6262) // SfxSetup.c : Function uses '32808' bytes of stack.
146#pragma warning(disable : 6320) // Threads.c : Exception-filter expression is the constant EXCEPTION_EXECUTE_HANDLER. This might mask exceptions that were not intended to be handled.
147#pragma warning(disable : 6385) // createcoder.cpp : Invalid data: accessing 'struct CCodecInfo const * * g_Codecs', the readable size is '256' bytes, but '4194244' bytes might be read: Lines: 338, 339, 340, 342, 344
148#pragma warning(disable : 6387) // MyString.cpp : 's' could be '0': this does not adhere to the specification for the function 'wmemcpy'
149#endif
150#if _MSC_VER == 1600
151#pragma warning(disable : 6200) // compressdialog.cpp : Index '31' is out of valid index range '0' to '9' for non-stack buffer 'g_Levels'
152#pragma warning(disable : 6204) // Possible buffer overrun in call to 'memset': use of unchecked parameter 'size'
153#pragma warning(disable : 6309) // Argument '1' is null: this does not adhere to function specification of 'GetProcAddress'
154#pragma warning(disable : 6386) // myvector.h : Buffer overrun: accessing 'argument 1', the writable size is 'newCapacity*4' bytes, but '8' bytes might be written
155#endif
156#endif // Z7_ANALYZE_MODE
157
128// == 1200 : -O1 : for __forceinline 158// == 1200 : -O1 : for __forceinline
129// >= 1900 : -O1 : for printf 159// >= 1900 : -O1 : for printf
130#pragma warning(disable : 4710) // function not inlined 160#pragma warning(disable : 4710) // function not inlined