Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit d4a4f7d

Browse files
franksinankayaSinan Kaya
authored and
Sinan Kaya
committed
Remove unused dwByteCount variable
src/pal/tests/palsuite/file_io/ReadFile/test1/ReadFile.cpp:22:11: warning: variable ‘dwByteCount’ set but not used [-Wunused-but-set-variable]
1 parent 56cb353 commit d4a4f7d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/pal/tests/palsuite/file_io/ReadFile/test1/ReadFile.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
int __cdecl main(int argc, char *argv[])
2020
{
2121
HANDLE hFile = NULL;
22-
DWORD dwByteCount = 0;
2322
DWORD dwBytesRead = 0;
2423
BOOL bRc = FALSE;
2524
char szBuffer[256];
@@ -62,7 +61,6 @@ int __cdecl main(int argc, char *argv[])
6261

6362
if(hFile == INVALID_HANDLE_VALUE)
6463
{
65-
dwByteCount = GetLastError();
6664
Fail("ReadFile: ERROR -> Unable to create file \"%s\".\n",
6765
szNonReadableFile);
6866
}

0 commit comments

Comments
 (0)