-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwinnt.patch
52 lines (48 loc) · 1.47 KB
/
winnt.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
--- winnt.h 2019-07-25 18:38:56.015380200 +0900
+++ winnt_patched.h 2019-07-25 18:36:56.194369800 +0900
@@ -2322,49 +2322,6 @@
// begin_ntoshvp
-#if ! defined(lint)
-
-#ifdef _PREFAST_
-
-void _Prefast_unreferenced_parameter_impl_(const char*, ...);
-#define UNREFERENCED_PARAMETER(P) _Prefast_unreferenced_parameter_impl_("PREfast", ((void) (P), 0))
-#define DBG_UNREFERENCED_PARAMETER(P) _Prefast_unreferenced_parameter_impl_("PREfast", ((void) (P), 0))
-#define DBG_UNREFERENCED_LOCAL_VARIABLE(V) _Prefast_unreferenced_parameter_impl_("PREfast", ((void) (V), 0))
-
-#else // _PREFAST_
-
-#define UNREFERENCED_PARAMETER(P) (P)
-#define DBG_UNREFERENCED_PARAMETER(P) (P)
-#define DBG_UNREFERENCED_LOCAL_VARIABLE(V) (V)
-
-#endif // _PREFAST_
-
-#else // lint
-
-// Note: lint -e530 says don't complain about uninitialized variables for
-// this variable. Error 527 has to do with unreachable code.
-// -restore restores checking to the -save state
-
-#define UNREFERENCED_PARAMETER(P) \
- /*lint -save -e527 -e530 */ \
- { \
- (P) = (P); \
- } \
- /*lint -restore */
-#define DBG_UNREFERENCED_PARAMETER(P) \
- /*lint -save -e527 -e530 */ \
- { \
- (P) = (P); \
- } \
- /*lint -restore */
-#define DBG_UNREFERENCED_LOCAL_VARIABLE(V) \
- /*lint -save -e527 -e530 */ \
- { \
- (V) = (V); \
- } \
- /*lint -restore */
-
-#endif // lint
// end_ntoshvp