summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2021-12-31 16:43:25 +0100
committerMartin Mareš <mj@ucw.cz>2022-01-01 22:50:16 +0100
commit42f915c52b3e905ba280fa39fed55ab9979fb5df (patch)
tree0822280254eb25a5bcd928f63e9506da3c3e4de1
parente05df9971f055221fa92ceaab6c4c190533dff4c (diff)
downloadpciutils-42f915c52b3e905ba280fa39fed55ab9979fb5df.tar.gz
libpci: i386-io-windows.h: Mute false-positive warning
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.
-rw-r--r--lib/i386-io-windows.h1
1 files changed, 1 insertions, 0 deletions
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)