Skip to content

Commit 90f54c2

Browse files
authored
Maintenance: Remove unused variables found static analysis (microsoft#156)
- CodeQL found these unused variables, remove them.
1 parent 092243d commit 90f54c2

File tree

5 files changed

+0
-12
lines changed

5 files changed

+0
-12
lines changed

samples/cping/cping.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ NTSTATUS (NTAPI *Real_NtDeviceIoControlFile)(HANDLE FileHandle,
185185
//////////////////////////////////////////////////////////////////////////////
186186
//
187187
static LONG s_nInCall = 0;
188-
static LONG s_nInIRpc = 0;
189188
static ULONG s_nThread = 0;
190189

191190
enum {

samples/dumpi/dumpi.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ VOID AssertMessage(PCSTR szMsg, PCSTR szFile, DWORD nLine)
2929
do { if (!(x)) { AssertMessage(#x, __FILE__, __LINE__); DebugBreak(); }} while (0)
3030
;
3131

32-
//////////////////////////////////////////////////////////////////////////////
33-
//
34-
static BOOL s_fSubs = FALSE;
35-
3632
//////////////////////////////////////////////////////////////////////////////
3733
//
3834
static CHAR s_szFile[MAX_PATH] = "\0";

samples/region/region.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
//////////////////////////////////////////////////////////////////////////////
1515
//
16-
static LONG dwSlept = 0;
1716
static DWORD (WINAPI * TrueSleepEx)(DWORD dwMilliseconds, BOOL bAlertable) = SleepEx;
1817

1918
DWORD WINAPI LoudSleepEx(DWORD dwMilliseconds, BOOL bAlertable)

samples/tracebld/trcbld.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,6 @@ static TBLOG_PAYLOAD s_ChildPayload;
5959
static CRITICAL_SECTION s_csChildPayload;
6060
static DWORD s_nTraceProcessId = 0;
6161
static LONG s_nChildCnt = 0;
62-
static PWCHAR s_pwEnvironment = NULL;
63-
static DWORD s_cwEnvironment = NULL;
64-
static PCHAR s_pbEnvironment = NULL;
65-
static DWORD s_cbEnvironment = NULL;
6662

6763
static CRITICAL_SECTION s_csPipe; // Guards access to hPipe.
6864
static HANDLE s_hPipe = INVALID_HANDLE_VALUE;

samples/withdll/withdll.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,6 @@ void ProtectToString(DWORD Protect, char *pszBuffer, size_t cBuffer)
155155
}
156156
}
157157

158-
static BYTE buffer[65536];
159-
160158
typedef union
161159
{
162160
struct

0 commit comments

Comments
 (0)