[newlib-cygwin/main] Cygwin:testsuite: winchild: drop unused variable

Corinna Vinschen via Cygwin-cvs <[email protected]> Mon, 14 Jul 2025 11:44:38 +0000 (GMT)
Newsgroups gmane.os.cygwin.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=771870a9f814ac6348ff2051a5c9754bdab104f9

commit 771870a9f814ac6348ff2051a5c9754bdab104f9
Author:     Corinna Vinschen <[email protected]>
AuthorDate: Mon Jul 14 13:44:17 2025 +0200
Commit:     Corinna Vinschen <[email protected]>
CommitDate: Mon Jul 14 13:44:17 2025 +0200

    Cygwin:testsuite: winchild: drop unused variable
    
    Signed-off-by: Corinna Vinschen <[email protected]>

Diff:
---
 winsup/testsuite/winsup.api/posix_spawn/winchild.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/winsup/testsuite/winsup.api/posix_spawn/winchild.c b/winsup/testsuite/winsup.api/posix_spawn/winchild.c
index 43fd35c58ae0..e41043da1899 100644
--- a/winsup/testsuite/winsup.api/posix_spawn/winchild.c
+++ b/winsup/testsuite/winsup.api/posix_spawn/winchild.c
@@ -85,7 +85,6 @@ int wmain (int argc, wchar_t **argv)
 					  FILE_NAME_OPENED|VOLUME_NAME_DOS))
 	    {
 	      POBJECT_NAME_INFORMATION pinfo = (POBJECT_NAME_INFORMATION) buf;
-	      DWORD err = GetLastError ();
 	      ULONG len;
 	      NTSTATUS status = NtQueryObject (stdhandle, ObjectNameInformation,
 					       pinfo, 65536, &len);