10797 npe: NULL pointer errors

Review Request #1762 — Created April 14, 2019 and submitted

tsoome
illumos-gate
10797
01f8604...
general
../../i86pc/io/pci/pci_tools.c: In function 'pcitool_map':
../../i86pc/io/pci/pci_tools.c:876:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return (NULL);
          ^
../../i86pc/io/pci/pci_tools.c:887:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return (NULL);
          ^
../../i86pc/io/pci/pci_tools.c: In function 'pcitool_dev_reg_ops':
../../i86pc/io/pci/pci_tools.c:1179:18: error: comparison between pointer and integer [-Werror]
    if (virt_addr == NULL) {
                  ^~
cc1: all warnings being treated as errors


andy_js
  1. Ship It!
  2. 
      
wiedi
  1. Ship It!
  2. 
      
tsoome
tsoome
Review request changed

Status: Closed (submitted)

Loading...