From 42f915c52b3e905ba280fa39fed55ab9979fb5df Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pali=20Roh=C3=A1r?= Date: Fri, 31 Dec 2021 16:43:25 +0100 Subject: [PATCH] libpci: i386-io-windows.h: Mute false-positive warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit i386-ports.c: In function ‘conf12_setup_io’: i386-io-windows.h:1021: warning: ‘old_token’ may be used uninitialized in this function i386-io-windows.h:1021: note: ‘old_token’ was declared here It is always properly initialized when accessed, just gcc compiler does not see it. --- lib/i386-io-windows.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/i386-io-windows.h b/lib/i386-io-windows.h index 772c6f2..6cf3a25 100644 --- a/lib/i386-io-windows.h +++ b/lib/i386-io-windows.h @@ -1031,6 +1031,7 @@ SetProcessUserModeIOPL(VOID) impersonate_privilege_enabled = FALSE; revert_to_old_token = FALSE; lsass_token = NULL; + old_token = NULL; /* Fast path when ProcessUserModeIOPL was already called. */ if (read_iopl() == 3) -- 2.39.2