Commit 7f388e46 authored by Alan Coopersmith's avatar Alan Coopersmith
Browse files

pci_id_file_open: move variable inside the #ifndef that uses it

Clears up gcc warning on Solaris:
common_device_name.c: In function 'pci_id_file_open':
common_device_name.c:83:17: warning: unused variable 'result' [-Wunused-variable]
Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <>
parent a39f0546
......@@ -80,9 +80,9 @@ typedef FILE * pci_id_file;
static pci_id_file
#ifndef __sun
pci_id_file result;
#ifndef __sun
result = fopen(PCIIDS_PATH "/pci.ids", "re");
if (result)
return result;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment