]> mj.ucw.cz Git - pciutils.git/commit
libpci: i386-io-windows.h: Mute false-positive warning
authorPali Rohár <pali@kernel.org>
Fri, 31 Dec 2021 15:43:25 +0000 (16:43 +0100)
committerMartin Mareš <mj@ucw.cz>
Sat, 1 Jan 2022 21:50:16 +0000 (22:50 +0100)
commit42f915c52b3e905ba280fa39fed55ab9979fb5df
tree0822280254eb25a5bcd928f63e9506da3c3e4de1
parente05df9971f055221fa92ceaab6c4c190533dff4c
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.
lib/i386-io-windows.h