From: Pali Rohár Date: Fri, 31 Dec 2021 15:43:25 +0000 (+0100) Subject: libpci: i386-io-windows.h: Mute false-positive warning X-Git-Tag: v3.8.0~64 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=42f915c52b3e905ba280fa39fed55ab9979fb5df;p=pciutils.git 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. --- 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)